Package org.bouncycastle.mls.crypto.bc
Class BcMlsKdf
java.lang.Object
org.bouncycastle.mls.crypto.bc.BcMlsKdf
- All Implemented Interfaces:
MlsKdf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
expand
(byte[] prk, byte[] info, int length) byte[]
expandWithLabel
(byte[] secret, String label, byte[] context, int length) byte[]
extract
(byte[] salt, byte[] ikm) org.bouncycastle.crypto.Digest
int
-
Constructor Details
-
BcMlsKdf
public BcMlsKdf(org.bouncycastle.crypto.Digest digest)
-
-
Method Details
-
getDigest
public org.bouncycastle.crypto.Digest getDigest() -
getHashLength
public int getHashLength()- Specified by:
getHashLength
in interfaceMlsKdf
-
extract
public byte[] extract(byte[] salt, byte[] ikm) -
expand
public byte[] expand(byte[] prk, byte[] info, int length) -
expandWithLabel
public byte[] expandWithLabel(byte[] secret, String label, byte[] context, int length) throws IOException - Specified by:
expandWithLabel
in interfaceMlsKdf
- Throws:
IOException
-