[Cryptech-Commits] [sw/libhal] 02/04: Fix dumb copy/paste errors.
git at cryptech.is
git at cryptech.is
Fri Mar 3 13:34:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch hw_ecdsa_p256
in repository sw/libhal.
commit c2f499e0a301d4ad0f92d58f436d01087ceae1bb
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu Mar 2 20:32:18 2017 -0500
Fix dumb copy/paste errors.
---
ecdsa.c | 10 +++++-----
hal.h | 4 ++--
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
More information about the Commits
mailing list