aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2020-03-10 19:33:13 -0400
committerPaul Selkirk <paul@psgd.org>2020-03-10 19:33:13 -0400
commitf012c32f742d95aae3fd4065234e1ddfbb1495c4 (patch)
tree2ed6a57598defed6a4b85e54868eb2a0efc7a1c7
parentfd8ca81821b6a146e6e628860436f86020eac998 (diff)
trivial cleanup
-rw-r--r--rsa.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/rsa.c b/rsa.c
index 9fd4b90..c6e1cf1 100644
--- a/rsa.c
+++ b/rsa.c
@@ -78,7 +78,7 @@
#include "asn1_internal.h"
/*
- * Whether to use ModExp core. It works, but it's painfully slow.
+ * Whether to use ModExp core.
*/
#ifndef HAL_RSA_SIGN_USE_MODEXP
@@ -577,10 +577,6 @@ static hal_error_t modexpng(hal_core_t *core,
return HAL_ERROR_FORBIDDEN;
}
-static hal_error_t modexpng_precalc(const fp_int *modulus, uint8_t *coeff, const size_t coeff_len, uint8_t *factor, const size_t factor_len)
-{
- return HAL_ERROR_FORBIDDEN;
-}
#endif /* HAL_RSA_SIGN_USE_MODEXP */
/*