summary refs log tree commit diff
path: root/crypto/src/crypto/modes/KCcmBlockCipher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/modes/KCcmBlockCipher.cs')
-rw-r--r--crypto/src/crypto/modes/KCcmBlockCipher.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/modes/KCcmBlockCipher.cs b/crypto/src/crypto/modes/KCcmBlockCipher.cs
index 5fb8d77c6..c13c41543 100644
--- a/crypto/src/crypto/modes/KCcmBlockCipher.cs
+++ b/crypto/src/crypto/modes/KCcmBlockCipher.cs
@@ -354,7 +354,7 @@ namespace Org.BouncyCastle.Crypto.Modes
 
                 Array.Copy(buffer, 0, calculatedMac, 0, macSize);
 
-                if (!Arrays.ConstantTimeAreEqual(mac, calculatedMac))
+                if (!Arrays.FixedTimeEquals(mac, calculatedMac))
                 {
                     throw new InvalidCipherTextException("mac check failed");
                 }
@@ -465,7 +465,7 @@ namespace Org.BouncyCastle.Crypto.Modes
 
                 calculatedMac.CopyFrom(buffer);
 
-                if (!Arrays.ConstantTimeAreEqual(mac.AsSpan(0, macSize), calculatedMac))
+                if (!Arrays.FixedTimeEquals(mac.AsSpan(0, macSize), calculatedMac))
                     throw new InvalidCipherTextException("mac check failed");
 
                 Reset();