Package org.bouncycastle.mls.crypto
Class Secret
java.lang.Object
org.bouncycastle.mls.crypto.Secret
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume()
deriveSecret
(MlsCipherSuite suite, String label) deriveTreeSecret
(MlsCipherSuite suite, String label, int generation, int length) boolean
expand
(MlsCipherSuite suite, String label, int length) expandWithLabel
(MlsCipherSuite suite, String label, byte[] context, int length) static Secret
extract
(MlsCipherSuite suite, Secret salt, Secret ikm) int
hashCode()
boolean
final byte[]
value()
static Secret
zero
(MlsCipherSuite suite)
-
Constructor Details
-
Secret
public Secret(byte[] value)
-
-
Method Details
-
zero
-
equals
-
hashCode
public int hashCode() -
value
public final byte[] value() -
isConsumed
public boolean isConsumed() -
consume
public void consume() -
extract
-
expand
-
expandWithLabel
public Secret expandWithLabel(MlsCipherSuite suite, String label, byte[] context, int length) throws IOException - Throws:
IOException
-
deriveSecret
- Throws:
IOException
-
deriveTreeSecret
public Secret deriveTreeSecret(MlsCipherSuite suite, String label, int generation, int length) throws IOException - Throws:
IOException
-