diff options
author | David Benjamin <davidben@google.com> | 2016-06-16 22:13:43 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2016-06-20 20:16:18 +0300 |
commit | 99c752ad52a42b40efd1654f8d506177c38ee1e1 (patch) | |
tree | a813673ae5a65741aa0754420f861e140500b7d0 /include/openssl/dsa.h | |
parent | 8cf79af7d1497c07bd684764b96c9659e7b32ae1 (diff) |
Compute kinv in DSA with Fermat's Little Theorem.
It's a prime, so computing a constant-time mod inverse is straight-forward.
Change-Id: Ie09b84363c3d5da827989300a844c470437fd8f2
Reviewed-on: https://boringssl-review.googlesource.com/8308
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/dsa.h')
-rw-r--r-- | include/openssl/dsa.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/dsa.h b/include/openssl/dsa.h index 0077a722..2a621dae 100644 --- a/include/openssl/dsa.h +++ b/include/openssl/dsa.h @@ -387,8 +387,9 @@ struct dsa_st { int flags; /* Normally used to cache montgomery values */ - CRYPTO_MUTEX method_mont_p_lock; + CRYPTO_MUTEX method_mont_lock; BN_MONT_CTX *method_mont_p; + BN_MONT_CTX *method_mont_q; CRYPTO_refcount_t references; CRYPTO_EX_DATA ex_data; }; |