diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-04-21 20:46:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-04-21 20:46:29 +0700 |
commit | 8ccb6119a3bf1e1dcf57a3439c94f59d14d61774 (patch) | |
tree | d56ae79542a526b14a06b7df661a1ef9f70f8619 /crypto/test/src/tls | |
parent | Refactoring (diff) | |
download | BouncyCastle.NET-ed25519-8ccb6119a3bf1e1dcf57a3439c94f59d14d61774.tar.xz |
Add HasHkdfAlgorithm method and use in test
Diffstat (limited to 'crypto/test/src/tls')
-rw-r--r-- | crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs | 3 |
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); |