summary refs log tree commit diff
path: root/crypto/src/math/ec/rfc8032/Wnaf.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-08-18 10:13:15 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-08-18 10:13:15 +0700
commit0adfd0489e2ea55522ad6bd9ba1b1afe238cdcbe (patch)
treeace64a80946b73d485e66e4740dbf0c6e0e60eda /crypto/src/math/ec/rfc8032/Wnaf.cs
parentExplicitly set IV to zeros when no ParametersWithIV (diff)
downloadBouncyCastle.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.cs2
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;