01: package org.bouncycastle.crypto;
02:
03: /**
04: * base interface for general purpose byte derivation functions.
05: */
06: public interface DerivationFunction {
07: public void init(DerivationParameters param);
08:
09: /**
10: * return the message digest used as the basis for the function
11: */
12: public Digest getDigest();
13:
14: public int generateBytes(byte[] out, int outOff, int len)
15: throws DataLengthException, IllegalArgumentException;
16: }
|