Class KDFFeedbackBytesGenerator
- java.lang.Object
-
- org.bouncycastle.crypto.generators.KDFFeedbackBytesGenerator
-
- All Implemented Interfaces:
DerivationFunction,MacDerivationFunction
public class KDFFeedbackBytesGenerator extends java.lang.Object implements MacDerivationFunction
This KDF has been defined by the publicly available NIST SP 800-108 specification.
-
-
Constructor Summary
Constructors Constructor Description KDFFeedbackBytesGenerator(Mac prf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgenerateBytes(byte[] out, int outOff, int len)MacgetMac()return the MAC used as the basis for the functionvoidinit(DerivationParameters params)
-
-
-
Constructor Detail
-
KDFFeedbackBytesGenerator
public KDFFeedbackBytesGenerator(Mac prf)
-
-
Method Detail
-
init
public void init(DerivationParameters params)
- Specified by:
initin interfaceDerivationFunction
-
getMac
public Mac getMac()
Description copied from interface:MacDerivationFunctionreturn the MAC used as the basis for the function- Specified by:
getMacin interfaceMacDerivationFunction- Returns:
- the Mac.
-
generateBytes
public int generateBytes(byte[] out, int outOff, int len) throws DataLengthException, java.lang.IllegalArgumentException- Specified by:
generateBytesin interfaceDerivationFunction- Throws:
DataLengthExceptionjava.lang.IllegalArgumentException
-
-