summary refs log tree commit diff
path: root/crypto/src/tsp/TimeStampToken.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tsp/TimeStampToken.cs')
-rw-r--r--crypto/src/tsp/TimeStampToken.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tsp/TimeStampToken.cs b/crypto/src/tsp/TimeStampToken.cs
index 93b372720..f2f86da67 100644
--- a/crypto/src/tsp/TimeStampToken.cs
+++ b/crypto/src/tsp/TimeStampToken.cs
@@ -161,7 +161,7 @@ namespace Org.BouncyCastle.Tsp
 				byte[] hash = DigestUtilities.CalculateDigest(
 					certID.GetHashAlgorithmName(), cert.GetEncoded());
 
-				if (!Arrays.ConstantTimeAreEqual(certID.GetCertHash(), hash))
+				if (!Arrays.FixedTimeEquals(certID.GetCertHash(), hash))
 					throw new TspValidationException("certificate hash does not match certID hash.");
 
 				if (certID.IssuerSerial != null)