Class TlsCryptoUtilities
- Namespace
- Org.BouncyCastle.Tls.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
public abstract class TlsCryptoUtilities
- Inheritance
-
TlsCryptoUtilities
- Inherited Members
-
Methods
GetHash(short)
public static int GetHash(short hashAlgorithm)
Parameters
hashAlgorithm short
Returns
- int
GetHashForHmac(int)
public static int GetHashForHmac(int macAlgorithm)
Parameters
macAlgorithm int
Returns
- int
GetHashForPrf(int)
public static int GetHashForPrf(int prfAlgorithm)
Parameters
prfAlgorithm int
Returns
- int
GetHashInternalSize(int)
public static int GetHashInternalSize(int cryptoHashAlgorithm)
Parameters
cryptoHashAlgorithm int
Returns
- int
GetHashOutputSize(int)
public static int GetHashOutputSize(int cryptoHashAlgorithm)
Parameters
cryptoHashAlgorithm int
Returns
- int
GetOidForHash(int)
public static DerObjectIdentifier GetOidForHash(int cryptoHashAlgorithm)
Parameters
cryptoHashAlgorithm int
Returns
- DerObjectIdentifier
GetSignature(short)
public static int GetSignature(short signatureAlgorithm)
Parameters
signatureAlgorithm short
Returns
- int
HkdfExpandLabel(TlsSecret, int, ReadOnlySpan<char>, ReadOnlySpan<byte>, int)
public static TlsSecret HkdfExpandLabel(TlsSecret secret, int cryptoHashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<byte> context, int length)
Parameters
secret TlsSecret
cryptoHashAlgorithm int
label ReadOnlySpan<char>
context ReadOnlySpan<byte>
length int
Returns
- TlsSecret
Exceptions
- IOException
HkdfExpandLabel(TlsSecret, int, string, byte[], int)
public static TlsSecret HkdfExpandLabel(TlsSecret secret, int cryptoHashAlgorithm, string label, byte[] context, int length)
Parameters
secret TlsSecret
cryptoHashAlgorithm int
label string
context byte[]
length int
Returns
- TlsSecret
Exceptions
- IOException