Class KDFFeedbackBytesGenerator
java.lang.Object
org.bouncycastle.crypto.generators.KDFFeedbackBytesGenerator
- All Implemented Interfaces:
DerivationFunction
,MacDerivationFunction
This KDF has been defined by the publicly available NIST SP 800-108 specification.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
generateBytes
(byte[] out, int outOff, int len) getMac()
return the MAC used as the basis for the functionvoid
init
(DerivationParameters params)
-
Constructor Details
-
KDFFeedbackBytesGenerator
-
-
Method Details
-
init
- Specified by:
init
in interfaceDerivationFunction
-
getMac
Description copied from interface:MacDerivationFunction
return the MAC used as the basis for the function- Specified by:
getMac
in interfaceMacDerivationFunction
- Returns:
- the Mac.
-
generateBytes
public int generateBytes(byte[] out, int outOff, int len) throws DataLengthException, IllegalArgumentException - Specified by:
generateBytes
in interfaceDerivationFunction
- Throws:
DataLengthException
IllegalArgumentException
-