aboutsummaryrefslogtreecommitdiff
path: root/rsa.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-06-14 17:25:29 -0400
committerPaul Selkirk <paul@psgd.org>2016-06-14 17:25:29 -0400
commit97c3a85d32893ec5f17ecd807a45bac935e42dd5 (patch)
treecb90ffcc07e09faf4b37ca0759fda2f65aa36714 /rsa.c
parenta20af9980516d516f0403bb80551db8d283aa383 (diff)
Add support for ModExpA7
Diffstat (limited to 'rsa.c')
-rw-r--r--rsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsa.c b/rsa.c
index 8438bea..c8a1479 100644
--- a/rsa.c
+++ b/rsa.c
@@ -197,7 +197,8 @@ static hal_error_t modexp(const hal_core_t *core,
{
hal_error_t err = HAL_OK;
- if ((err = hal_core_check_name(&core, MODEXPS6_NAME)) != HAL_OK)
+ if (((err = hal_core_check_name(&core, MODEXPS6_NAME)) != HAL_OK) &&
+ ((err = hal_core_check_name(&core, MODEXPA7_NAME)) != HAL_OK))
return err;
assert(msg != NULL && exp != NULL && mod != NULL && res != NULL);