DerivationFunctionpublic class HKDFBytesGenerator extends java.lang.Object implements DerivationFunction
| Constructor | Description |
|---|---|
HKDFBytesGenerator(Digest hash) |
Creates a HKDFBytesGenerator based on the given hash function.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
generateBytes(byte[] out,
int outOff,
int len) |
|
Digest |
getDigest() |
|
void |
init(DerivationParameters param) |
public HKDFBytesGenerator(Digest hash)
hash - the digest to be used as the source of generatedBytes bytespublic void init(DerivationParameters param)
init in interface DerivationFunctionpublic Digest getDigest()
public int generateBytes(byte[] out,
int outOff,
int len)
throws DataLengthException,
java.lang.IllegalArgumentException
generateBytes in interface DerivationFunctionDataLengthExceptionjava.lang.IllegalArgumentException