aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ecdsa.c10
-rw-r--r--hal.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/ecdsa.c b/ecdsa.c
index bb585be..83f2188 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -856,7 +856,7 @@ static inline hal_error_t verilog_p256_point_pick_random(fp_int *k, ec_point_t *
{
#if HAL_ECDSA_VERILOG_ECDSA256_MULTIPLIER
- static const verilog_ecdsa_driver_t verilog_p256_driver = {
+ static const verilog_ecdsa_driver_t p256_driver = {
.name = ECDSA256_NAME,
.bytes = ECDSA256_OPERAND_BITS / 8,
.k_addr = ECDSA256_ADDR_K,
@@ -865,7 +865,7 @@ static inline hal_error_t verilog_p256_point_pick_random(fp_int *k, ec_point_t *
};
if (verilog_ecdsa256_multiplier)
- return verilog_point_pick_random(&verilog_p256_driver, k, P);
+ return verilog_point_pick_random(&p256_driver, k, P);
#endif
@@ -876,7 +876,7 @@ static inline hal_error_t verilog_p384_point_pick_random(fp_int *k, ec_point_t *
{
#if HAL_ECDSA_VERILOG_ECDSA384_MULTIPLIER
- static const verilog_ecdsa_driver_t verilog_p384_driver = {
+ static const verilog_ecdsa_driver_t p384_driver = {
.name = ECDSA384_NAME,
.bytes = ECDSA384_OPERAND_BITS / 8,
.k_addr = ECDSA384_ADDR_K,
@@ -884,8 +884,8 @@ static inline hal_error_t verilog_p384_point_pick_random(fp_int *k, ec_point_t *
.y_addr = ECDSA384_ADDR_Y
};
- if (verilog_ecdsa256_multiplier)
- return verilog_point_pick_random(&verilog_p256_driver, k, P);
+ if (verilog_ecdsa384_multiplier)
+ return verilog_point_pick_random(&p384_driver, k, P);
#endif
diff --git a/hal.h b/hal.h
index 7b4fcb7..29b4dab 100644
--- a/hal.h
+++ b/hal.h
@@ -106,8 +106,8 @@
#define ECDSA256_NAME "ecdsa256"
#define ECDSA256_VERSION "0.11"
-#define ECDSA256_NAME "ecdsa384"
-#define ECDSA256_VERSION "0.11"
+#define ECDSA384_NAME "ecdsa384"
+#define ECDSA384_VERSION "0.11"
/*
* C API error codes. Defined in this form so we can keep the tokens