summary refs log tree commit diff
path: root/crypto/test/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-04-21 20:46:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-04-21 20:46:29 +0700
commit8ccb6119a3bf1e1dcf57a3439c94f59d14d61774 (patch)
treed56ae79542a526b14a06b7df661a1ef9f70f8619 /crypto/test/src
parentRefactoring (diff)
downloadBouncyCastle.NET-ed25519-8ccb6119a3bf1e1dcf57a3439c94f59d14d61774.tar.xz
Add HasHkdfAlgorithm method and use in test
Diffstat (limited to 'crypto/test/src')
-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);