diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-09 17:08:48 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-09 17:08:48 +0700 |
commit | ac5ab976832d3d6e107502acd318f9fe3b12e547 (patch) | |
tree | d594b09d80bd74705d23e011a43f8fc8fda87904 /crypto/src/math/ec/ECAlgorithms.cs | |
parent | ASN.1 updates from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-ac5ab976832d3d6e107502acd318f9fe3b12e547.tar.xz |
Add non-constant-time variant to ECLookupTable
Diffstat (limited to 'crypto/src/math/ec/ECAlgorithms.cs')
-rw-r--r-- | crypto/src/math/ec/ECAlgorithms.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/math/ec/ECAlgorithms.cs b/crypto/src/math/ec/ECAlgorithms.cs index 8b7184006..4976b73b0 100644 --- a/crypto/src/math/ec/ECAlgorithms.cs +++ b/crypto/src/math/ec/ECAlgorithms.cs @@ -586,8 +586,8 @@ namespace Org.BouncyCastle.Math.EC secretIndexL ^= secretBitL; } - ECPoint addP = lookupTableP.Lookup((int)secretIndexK); - ECPoint addQ = lookupTableQ.Lookup((int)secretIndexL); + ECPoint addP = lookupTableP.LookupVar((int)secretIndexK); + ECPoint addQ = lookupTableQ.LookupVar((int)secretIndexL); ECPoint T = addP.Add(addQ); |