summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/gm/SM2P256V1Field.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/custom/gm/SM2P256V1Field.cs')
-rw-r--r--crypto/src/math/ec/custom/gm/SM2P256V1Field.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/gm/SM2P256V1Field.cs b/crypto/src/math/ec/custom/gm/SM2P256V1Field.cs
index 6fbe849a8..d4d3a8efe 100644
--- a/crypto/src/math/ec/custom/gm/SM2P256V1Field.cs
+++ b/crypto/src/math/ec/custom/gm/SM2P256V1Field.cs
@@ -50,7 +50,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.GM
             uint[] z = Nat.FromBigInteger(256, x);
             if (z[7] >= P7 && Nat256.Gte(z, P))
             {
-                Nat256.SubFrom(P, z);
+                Nat256.SubFrom(P, z, 0);
             }
             return z;
         }