public class BcTlsSecret extends AbstractTlsSecret
| Modifier and Type | Field and Description |
|---|---|
protected BcTlsCrypto |
crypto |
data| Constructor and Description |
|---|
BcTlsSecret(BcTlsCrypto crypto,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
protected TlsSecret |
adoptLocalSecret(byte[] data) |
TlsSecret |
deriveUsingPRF(int prfAlgorithm,
java.lang.String label,
byte[] seed,
int length)
Return a new secret based on applying a PRF to this one.
|
protected AbstractTlsCrypto |
getCrypto() |
protected void |
hmacHash(org.bouncycastle.crypto.Digest digest,
byte[] secret,
int secretOff,
int secretLen,
byte[] seed,
byte[] output) |
protected byte[] |
prf_1_0(byte[] labelSeed,
int length) |
protected byte[] |
prf_1_2(int prfAlgorithm,
byte[] labelSeed,
int length) |
protected byte[] |
prf_SSL(byte[] seed,
int length) |
protected byte[] |
prf(int prfAlgorithm,
java.lang.String label,
byte[] seed,
int length) |
checkAlive, createCipher, destroy, encrypt, extract, hkdfExpand, hkdfExtract, isAliveprotected final BcTlsCrypto crypto
public BcTlsSecret(BcTlsCrypto crypto, byte[] data)
public TlsSecret deriveUsingPRF(int prfAlgorithm, java.lang.String label, byte[] seed, int length)
TlsSecretprfAlgorithm - PRF algorithm to use.label - the label details.seed - the seed details.length - the size (in bytes) of the secret to generate.protected TlsSecret adoptLocalSecret(byte[] data)
adoptLocalSecret in class AbstractTlsSecretprotected AbstractTlsCrypto getCrypto()
getCrypto in class AbstractTlsSecretprotected void hmacHash(org.bouncycastle.crypto.Digest digest,
byte[] secret,
int secretOff,
int secretLen,
byte[] seed,
byte[] output)
protected byte[] prf(int prfAlgorithm,
java.lang.String label,
byte[] seed,
int length)
protected byte[] prf_SSL(byte[] seed,
int length)
protected byte[] prf_1_0(byte[] labelSeed,
int length)
protected byte[] prf_1_2(int prfAlgorithm,
byte[] labelSeed,
int length)