diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-10 12:54:22 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-10 12:54:22 +0700 |
commit | 217c08cdb0359f95c40f1a09e4e545a4552509fe (patch) | |
tree | bb6418fed2a682e42ea77a82cd2da6f3e923d929 /crypto/src/tls/SignatureScheme.cs | |
parent | Avoid duplicate call (diff) | |
download | BouncyCastle.NET-ed25519-217c08cdb0359f95c40f1a09e4e545a4552509fe.tar.xz |
Improve TLS handshake hash tracking
Diffstat (limited to 'crypto/src/tls/SignatureScheme.cs')
-rw-r--r-- | crypto/src/tls/SignatureScheme.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/tls/SignatureScheme.cs b/crypto/src/tls/SignatureScheme.cs index 03a8ce30f..ed8e3c21b 100644 --- a/crypto/src/tls/SignatureScheme.cs +++ b/crypto/src/tls/SignatureScheme.cs @@ -97,6 +97,11 @@ namespace Org.BouncyCastle.Tls } } + public static int GetCryptoHashAlgorithm(SignatureAndHashAlgorithm signatureAndHashAlgorithm) + { + return GetCryptoHashAlgorithm(From(signatureAndHashAlgorithm)); + } + public static string GetName(int signatureScheme) { switch (signatureScheme) |