[Cryptech-Commits] [user/sra/libhal] 01/01: Track ModExp core exponent padding change: this enables the short exponent fast path.

git at cryptech.is git at cryptech.is
Tue Jun 30 21:06:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository user/sra/libhal.

commit 376fa9425624a3b61493d9b13664f35d75d68b3e
Author: Rob Austein <sra at hactrn.net>
Date:   Tue Jun 30 16:40:18 2015 -0400

    Track ModExp core exponent padding change: this enables the short exponent fast path.
---
 modexp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modexp.c b/modexp.c
index 7a804bb..1e3d292 100644
--- a/modexp.c
+++ b/modexp.c
@@ -188,8 +188,8 @@ hal_error_t hal_modexp(const uint8_t * const msg, const size_t msg_len, /* Messa
   check(set_blockmem(MODEXP_MESSAGE_PTR_RST, MODEXP_MESSAGE_DATA, msg, msg_len, io_len));
   check(set_register(MODEXP_MODULUS_LENGTH, /* mod_len */ io_len / 4));
 
-  check(set_blockmem(MODEXP_EXPONENT_PTR_RST, MODEXP_EXPONENT_DATA, exp, exp_len, io_len));
-  check(set_register(MODEXP_EXPONENT_LENGTH, /* exp_len */ io_len / 4));
+  check(set_blockmem(MODEXP_EXPONENT_PTR_RST, MODEXP_EXPONENT_DATA, exp, exp_len, exp_len));
+  check(set_register(MODEXP_EXPONENT_LENGTH, exp_len / 4));
 
   check(hal_io_wait_ready(MODEXP_ADDR_STATUS));
 



More information about the Commits mailing list