|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.jcajce.spec.TLSKeyMaterialSpec
Key Spec class for generating TLS key/iv material.
Field Summary | |
static java.lang.String |
KEY_EXPANSION
|
static java.lang.String |
MASTER_SECRET
|
Constructor Summary | |
TLSKeyMaterialSpec(byte[] secret,
java.lang.String label,
int length,
byte[] seedMaterial1,
byte[] seedMaterial2)
Constructor specifying the basic parameters for a TLS KDF |
|
TLSKeyMaterialSpec(byte[] secret,
java.lang.String label,
int length,
byte[] seedMaterial1,
byte[] seedMaterial2,
byte[] seedMaterial3)
Constructor specifying the basic parameters for a TLS KDF |
Method Summary | |
java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MASTER_SECRET
public static final java.lang.String KEY_EXPANSION
Constructor Detail |
public TLSKeyMaterialSpec(byte[] secret, java.lang.String label, int length, byte[] seedMaterial1, byte[] seedMaterial2)
secret
- secret to uselabel
- e.g. 'master secret', or 'key expansion'length
- number of bytes of material to be generatedseedMaterial1
- first element of seed materialseedMaterial2
- second element of seed materialpublic TLSKeyMaterialSpec(byte[] secret, java.lang.String label, int length, byte[] seedMaterial1, byte[] seedMaterial2, byte[] seedMaterial3)
secret
- secret to uselabel
- e.g. 'master secret', or 'key expansion'length
- number of bytes of material to be generatedseedMaterial1
- first element of seed materialseedMaterial2
- second element of seed materialseedMaterial3
- third element of seed materialMethod Detail |
public java.lang.String getLabel()
public int getLength()
public byte[] getSecret()
public byte[] getSeed()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |