From 8ff9d4131bf79b36551c2ed995881a88fb9c0a61 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 12 Sep 2017 10:04:55 -0400 Subject: Untested ASN.1 support for ModExpA7 private speedup factors. --- modexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modexp.c') diff --git a/modexp.c b/modexp.c index 7ff7b21..12b5789 100644 --- a/modexp.c +++ b/modexp.c @@ -177,7 +177,7 @@ static inline hal_error_t set_buffer(const hal_core_t *core, */ hal_error_t hal_modexp(hal_core_t *core, - const int precalc_done, + const int precalc, const uint8_t * const msg, const size_t msg_len, /* Message */ const uint8_t * const exp, const size_t exp_len, /* Exponent */ const uint8_t * const mod, const size_t mod_len, /* Modulus */ @@ -242,7 +242,7 @@ hal_error_t hal_modexp(hal_core_t *core, * is edge-triggered by "init" bit going from zero to one. */ - if (!precalc_done) { + if (precalc) { check(hal_io_zero(core)); check(hal_io_init(core)); check(hal_io_wait_ready(core)); -- cgit v1.2.3