Top Fields Constructors Methods
org.bouncycastle.tls.crypto

public abstract Class TlsCryptoUtils

extends Object
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.x509.X509ObjectIdentifiers, org.bouncycastle.tls.AlertDescription, .HashAlgorithm, .MACAlgorithm, .PRFAlgorithm, .SignatureAlgorithm, .TlsFatalAlert, .TlsUtils

Field Summary

Modifier and TypeField and Description
private static final byte[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
getHash(short hashAlgorithm)

public static int
getHashForHMAC(int macAlgorithm)

public static int
getHashForPRF(int prfAlgorithm)

public static int
getHashInternalSize(int cryptoHashAlgorithm)

public static int
getHashOutputSize(int cryptoHashAlgorithm)

public static ASN1ObjectIdentifier
getOIDForHash(int cryptoHashAlgorithm)

public static int
getSignature(short signatureAlgorithm)

public static TlsSecret
hkdfExpandLabel(TlsSecret secret, int cryptoHashAlgorithm, String label, byte[] context, int length)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

TLS13_PREFIXback to summary
private static final byte[] TLS13_PREFIX

Constructor Detail

TlsCryptoUtilsback to summary
public TlsCryptoUtils()

Method Detail

getHashback to summary
public static int getHash(short hashAlgorithm)
getHashForHMACback to summary
public static int getHashForHMAC(int macAlgorithm)
getHashForPRFback to summary
public static int getHashForPRF(int prfAlgorithm)
getHashInternalSizeback to summary
public static int getHashInternalSize(int cryptoHashAlgorithm)
getHashOutputSizeback to summary
public static int getHashOutputSize(int cryptoHashAlgorithm)
getOIDForHashback to summary
public static ASN1ObjectIdentifier getOIDForHash(int cryptoHashAlgorithm)
getSignatureback to summary
public static int getSignature(short signatureAlgorithm)
hkdfExpandLabelback to summary
public static TlsSecret hkdfExpandLabel(TlsSecret secret, int cryptoHashAlgorithm, String label, byte[] context, int length) throws IOException