summary refs log tree commit diff
path: root/crypto/src/crypto/modes/OCBBlockCipher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/modes/OCBBlockCipher.cs')
-rw-r--r--crypto/src/crypto/modes/OCBBlockCipher.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/modes/OCBBlockCipher.cs b/crypto/src/crypto/modes/OCBBlockCipher.cs
index e67b4e9af..9ae60805e 100644
--- a/crypto/src/crypto/modes/OCBBlockCipher.cs
+++ b/crypto/src/crypto/modes/OCBBlockCipher.cs
@@ -439,7 +439,7 @@ namespace Org.BouncyCastle.Crypto.Modes
             else
             {
                 // Compare the tag from the message with the calculated one
-                if (!Arrays.ConstantTimeAreEqual(macBlock, tag))
+                if (!Arrays.FixedTimeEquals(macBlock, tag))
                     throw new InvalidCipherTextException("mac check in OCB failed");
             }
 
@@ -529,7 +529,7 @@ namespace Org.BouncyCastle.Crypto.Modes
             else
             {
                 // Compare the tag from the message with the calculated one
-                if (!Arrays.ConstantTimeAreEqual(macBlock, tag))
+                if (!Arrays.FixedTimeEquals(macBlock, tag))
                     throw new InvalidCipherTextException("mac check in OCB failed");
             }