diff options
Diffstat (limited to '3rd_party/libsrp6a-sha512/t_math.c')
-rw-r--r-- | 3rd_party/libsrp6a-sha512/t_math.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/3rd_party/libsrp6a-sha512/t_math.c b/3rd_party/libsrp6a-sha512/t_math.c index 037650e..dac19ec 100644 --- a/3rd_party/libsrp6a-sha512/t_math.c +++ b/3rd_party/libsrp6a-sha512/t_math.c | |||
@@ -720,7 +720,11 @@ BigIntegerModExp(BigInteger r, BigInteger b, BigInteger e, BigInteger m, BigInte | |||
720 | else if(a == NULL) { | 720 | else if(a == NULL) { |
721 | BN_mod_exp(r, b, e, m, c); | 721 | BN_mod_exp(r, b, e, m, c); |
722 | } | 722 | } |
723 | #if OPENSSL_VERSION_NUMBER >= 0x00906000 | 723 | /* |
724 | * In LibreSSL BN_mod_exp_mont_word() is not a public symbol where BN_mod_exp() | ||
725 | * and BN_mod_exp_mont() will use the word optimization when appropriate. | ||
726 | */ | ||
727 | #if OPENSSL_VERSION_NUMBER >= 0x00906000 && !defined(LIBRESSL_VERSION_NUMBER) | ||
724 | else if(B > 0 && B < ULONG_MAX) { /* 0.9.6 and above has mont_word optimization */ | 728 | else if(B > 0 && B < ULONG_MAX) { /* 0.9.6 and above has mont_word optimization */ |
725 | BN_mod_exp_mont_word(r, B, e, m, c, a); | 729 | BN_mod_exp_mont_word(r, B, e, m, c, a); |
726 | } | 730 | } |