summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs b/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs
index a274cc5ba..ddbe4c6b8 100644
--- a/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs
+++ b/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs
@@ -408,6 +408,9 @@ namespace Org.BouncyCastle.Tls.Crypto.Tests
             for (int i = 0; i < hashes.Length; ++i)
             {
                 int hash = hashes[i];
+                if (!m_crypto.HasHkdfAlgorithm(hash))
+                    continue;
+
                 int hashLen = TlsCryptoUtilities.GetHashOutputSize(hash);
                 TlsSecret zeros = m_crypto.HkdfInit(hash);