Modifier and Type | Field and Description |
---|---|
static String |
KEY_EXPANSION |
static String |
MASTER_SECRET |
Constructor and Description |
---|
TLSKeyMaterialSpec(byte[] secret,
String label,
int length,
byte[]... seedMaterial)
Constructor specifying the basic parameters for a TLS KDF
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Return the label associated with this spec.
|
int |
getLength()
Return the number of bytes of key material to be generated for this spec.
|
byte[] |
getSecret()
Return the secret associated with this spec.
|
byte[] |
getSeed()
Return the full seed for the spec.
|
public static final String MASTER_SECRET
public static final String KEY_EXPANSION
public TLSKeyMaterialSpec(byte[] secret, String label, int length, byte[]... seedMaterial)
secret
- secret to uselabel
- e.g. 'master secret', or 'key expansion'length
- number of bytes of material to be generatedseedMaterial
- array of seed material inputs (to be concatenated together)public String getLabel()
public int getLength()
public byte[] getSecret()
public byte[] getSeed()
Copyright © 2018 BouncyCastle.org. All rights reserved.