diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-26 13:20:35 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-26 13:20:35 +0700 |
commit | 4f151774bd05b3855e573accf63a0f8ecfda43ac (patch) | |
tree | 89fcf3d1e06b6282e6d470f19cdb07fe7d84064e /crypto/src/math/ec/custom/gm/SM2P256V1Field.cs | |
parent | Code cleanup (diff) | |
download | BouncyCastle.NET-ed25519-4f151774bd05b3855e573accf63a0f8ecfda43ac.tar.xz |
Refactoring in Math.EC.Rfc8032
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 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; } |