Class ECDHKEKGenerator
- java.lang.Object
-
- org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator
-
- All Implemented Interfaces:
DerivationFunction,DigestDerivationFunction
public class ECDHKEKGenerator extends java.lang.Object implements DigestDerivationFunction
X9.63 based key derivation function for ECDH CMS.
-
-
Constructor Summary
Constructors Constructor Description ECDHKEKGenerator(Digest digest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgenerateBytes(byte[] out, int outOff, int len)DigestgetDigest()return the message digest used as the basis for the functionvoidinit(DerivationParameters param)
-
-
-
Constructor Detail
-
ECDHKEKGenerator
public ECDHKEKGenerator(Digest digest)
-
-
Method Detail
-
init
public void init(DerivationParameters param)
- Specified by:
initin interfaceDerivationFunction
-
getDigest
public Digest getDigest()
Description copied from interface:DigestDerivationFunctionreturn the message digest used as the basis for the function- Specified by:
getDigestin interfaceDigestDerivationFunction
-
generateBytes
public int generateBytes(byte[] out, int outOff, int len) throws DataLengthException, java.lang.IllegalArgumentException- Specified by:
generateBytesin interfaceDerivationFunction- Throws:
DataLengthExceptionjava.lang.IllegalArgumentException
-
-