summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/Curve25519Field.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/sec/Curve25519Field.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/Curve25519Field.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/Curve25519Field.cs b/crypto/src/math/ec/custom/sec/Curve25519Field.cs
index a11659a60..c272cbc38 100644
--- a/crypto/src/math/ec/custom/sec/Curve25519Field.cs
+++ b/crypto/src/math/ec/custom/sec/Curve25519Field.cs
@@ -147,7 +147,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
 
         public static void Twice(uint[] x, uint[] z)
         {
-            Nat256.ShiftUpBit(x, 0, z);
+            Nat.ShiftUpBit(8, x, 0, z);
             if (Nat256.Gte(z, P))
             {
                 Nat256.AddWord(PInv, z, 0);