org.bouncycastle.crypto

Interface DerivationFunction

Known Implementing Classes:
BaseKDFBytesGenerator, BrokenKDF2BytesGenerator, KDF1BytesGenerator, KDF2BytesGenerator, MGF1BytesGenerator

public interface DerivationFunction

base interface for general purpose byte derivation functions.

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)

Method Details

generateBytes

public int generateBytes(byte[] out,
                         int outOff,
                         int len)
            throws DataLengthException,
                   IllegalArgumentException

getDigest

public Digest getDigest()
return the message digest used as the basis for the function

init

public void init(DerivationParameters param)