summary refs log tree commit diff
path: root/crypto/src/crypto/agreement/SM2KeyExchange.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/agreement/SM2KeyExchange.cs')
-rw-r--r--crypto/src/crypto/agreement/SM2KeyExchange.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/agreement/SM2KeyExchange.cs b/crypto/src/crypto/agreement/SM2KeyExchange.cs

index 986d98421..5db156f9c 100644 --- a/crypto/src/crypto/agreement/SM2KeyExchange.cs +++ b/crypto/src/crypto/agreement/SM2KeyExchange.cs
@@ -127,7 +127,7 @@ namespace Org.BouncyCastle.Crypto.Agreement byte[] s1 = S1(mDigest, U, inner); - if (!Arrays.ConstantTimeAreEqual(s1, confirmationTag)) + if (!Arrays.FixedTimeEquals(s1, confirmationTag)) throw new InvalidOperationException("confirmation tag mismatch"); return new byte[][] { rv, S2(mDigest, U, inner)};