Package org.bouncycastle.tls.crypto
Class TlsCryptoUtils
java.lang.Object
org.bouncycastle.tls.crypto.TlsCryptoUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getHash
(short hashAlgorithm) static int
getHashForHMAC
(int macAlgorithm) static int
getHashForPRF
(int prfAlgorithm) static int
getHashInternalSize
(int cryptoHashAlgorithm) static int
getHashOutputSize
(int cryptoHashAlgorithm) static org.bouncycastle.asn1.ASN1ObjectIdentifier
getOIDForHash
(int cryptoHashAlgorithm) static int
getSignature
(short signatureAlgorithm) static TlsSecret
hkdfExpandLabel
(TlsSecret secret, int cryptoHashAlgorithm, String label, byte[] context, int length)
-
Constructor Details
-
TlsCryptoUtils
public TlsCryptoUtils()
-
-
Method Details
-
getHash
public static int getHash(short hashAlgorithm) -
getHashForHMAC
public static int getHashForHMAC(int macAlgorithm) -
getHashForPRF
public static int getHashForPRF(int prfAlgorithm) -
getHashInternalSize
public static int getHashInternalSize(int cryptoHashAlgorithm) -
getHashOutputSize
public static int getHashOutputSize(int cryptoHashAlgorithm) -
getOIDForHash
public static org.bouncycastle.asn1.ASN1ObjectIdentifier getOIDForHash(int cryptoHashAlgorithm) -
getSignature
public static int getSignature(short signatureAlgorithm) -
hkdfExpandLabel
public static TlsSecret hkdfExpandLabel(TlsSecret secret, int cryptoHashAlgorithm, String label, byte[] context, int length) throws IOException - Throws:
IOException
-