diff options
Diffstat (limited to 'crypto/src/math/ec/custom/gm/SM2P256V1Field.cs')
-rw-r--r-- | crypto/src/math/ec/custom/gm/SM2P256V1Field.cs | 2 |
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 38743189a..6fbe849a8 100644 --- a/crypto/src/math/ec/custom/gm/SM2P256V1Field.cs +++ b/crypto/src/math/ec/custom/gm/SM2P256V1Field.cs @@ -47,7 +47,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.GM public static uint[] FromBigInteger(BigInteger x) { - uint[] z = Nat256.FromBigInteger(x); + uint[] z = Nat.FromBigInteger(256, x); if (z[7] >= P7 && Nat256.Gte(z, P)) { Nat256.SubFrom(P, z); |