public class KDFCounterBytesGenerator extends java.lang.Object implements MacDerivationFunction
This function must be called with the following KDFCounterParameters():
- KI
- The part of the fixedInputData that comes BEFORE the counter OR null
- the part of the fixedInputData that comes AFTER the counter OR null
- the length of the counter in bits (not bytes)
| Constructor and Description |
|---|
KDFCounterBytesGenerator(Mac prf) |
| Modifier and Type | Method and Description |
|---|---|
int |
generateBytes(byte[] out,
int outOff,
int len) |
Mac |
getMac()
return the MAC used as the basis for the function
|
void |
init(DerivationParameters param) |
public KDFCounterBytesGenerator(Mac prf)
public void init(DerivationParameters param)
init in interface DerivationFunctionpublic Mac getMac()
MacDerivationFunctiongetMac in interface MacDerivationFunctionpublic int generateBytes(byte[] out,
int outOff,
int len)
throws DataLengthException,
java.lang.IllegalArgumentException
generateBytes in interface DerivationFunctionDataLengthExceptionjava.lang.IllegalArgumentException