Package org.bouncycastle.crypto
Interface KDFCalculator<T extends Parameters>
- Type Parameters:
T
- the type of the parameters used to initialise the calculator.
public interface KDFCalculator<T extends Parameters>
Interface describing a Key Derivation Function (KDF).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateBytes
(byte[] out) Generate out worth of bytes into the out array.void
generateBytes
(byte[] out, int outOff, int len) Generate len worth of bytes and place them in out starting at the offset outOff.Return the parameters for this KDF calculator.
-
Method Details
-
getParameters
T getParameters()Return the parameters for this KDF calculator.- Returns:
- the KDF calculator's parameters.
-
generateBytes
void generateBytes(byte[] out) Generate out worth of bytes into the out array.- Parameters:
out
- the target array for the bytes generated.
-
generateBytes
void generateBytes(byte[] out, int outOff, int len) Generate len worth of bytes and place them in out starting at the offset outOff.- Parameters:
out
- the target array for the bytes generated.outOff
- the offset to start writing the generated bytes at.len
- the number of bytes to generate.
-