org.bouncycastle.crypto.agreement.kdf

Class ECDHKEKGenerator

Implemented Interfaces:
DerivationFunction

public class ECDHKEKGenerator
extends java.lang.Object
implements DerivationFunction

X9.63 based key derivation function for ECDH CMS.

Constructor Summary

ECDHKEKGenerator(Digest digest)

Method Summary

int
generateBytes(byte[] out, int outOff, int len)
Digest
getDigest()
return the message digest used as the basis for the function
void
init(DerivationParameters param)

Constructor Details

ECDHKEKGenerator

public ECDHKEKGenerator(Digest digest)

Method Details

generateBytes

public int generateBytes(byte[] out,
                         int outOff,
                         int len)
            throws DataLengthException,
                   IllegalArgumentException
Specified by:
generateBytes in interface DerivationFunction

getDigest

public Digest getDigest()
return the message digest used as the basis for the function
Specified by:
getDigest in interface DerivationFunction

init

public void init(DerivationParameters param)
Specified by:
init in interface DerivationFunction