Class Secret
java.lang.Object
org.bouncycastle.mls.crypto.Secret
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume()deriveSecret(MlsCipherSuite suite, String label) deriveTreeSecret(MlsCipherSuite suite, String label, int generation, int length) booleanexpand(MlsCipherSuite suite, String label, int length) expandWithLabel(MlsCipherSuite suite, String label, byte[] context, int length) static Secretextract(MlsCipherSuite suite, Secret salt, Secret ikm) inthashCode()booleanfinal byte[]value()static Secretzero(MlsCipherSuite suite)
-
Constructor Details
-
Secret
public Secret(byte[] value)
-
-
Method Details
-
zero
-
equals
-
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
-