diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-08-18 10:13:15 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-08-18 10:13:15 +0700 |
commit | 0adfd0489e2ea55522ad6bd9ba1b1afe238cdcbe (patch) | |
tree | ace64a80946b73d485e66e4740dbf0c6e0e60eda /crypto/src/math/ec/rfc8032/Wnaf.cs | |
parent | Explicitly set IV to zeros when no ParametersWithIV (diff) | |
download | BouncyCastle.NET-ed25519-0adfd0489e2ea55522ad6bd9ba1b1afe238cdcbe.tar.xz |
Refactoring in Math.EC
Diffstat (limited to 'crypto/src/math/ec/rfc8032/Wnaf.cs')
-rw-r--r-- | crypto/src/math/ec/rfc8032/Wnaf.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/rfc8032/Wnaf.cs b/crypto/src/math/ec/rfc8032/Wnaf.cs index 88319f405..209934031 100644 --- a/crypto/src/math/ec/rfc8032/Wnaf.cs +++ b/crypto/src/math/ec/rfc8032/Wnaf.cs @@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032 { int word16 = (int)(word >> j); - int skip = Integers.NumberOfTrailingZeros((sign ^ word16) | 0x00010000); + int skip = Integers.NumberOfTrailingZeros((sign ^ word16) | (1 << 16)); if (skip > 0) { j += skip; |