T
- the parameters type for the deriver.public interface PasswordBasedDeriver<T>
Modifier and Type | Interface and Description |
---|---|
static class |
PasswordBasedDeriver.KeyType
The target key type we are trying to produce a key for.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
deriveKey(PasswordBasedDeriver.KeyType keyType,
int keySizeInBytes)
Derive a key of the given keySizeInBytes length.
|
byte[][] |
deriveKeyAndIV(PasswordBasedDeriver.KeyType keyType,
int keySizeInBytes,
int ivSizeInBytes)
Derive a key of the given keySizeInBytes length and an iv of ivSizeInBytes length.
|
T |
getParameters()
Return the parameters for this deriver.
|
T getParameters()
byte[] deriveKey(PasswordBasedDeriver.KeyType keyType, int keySizeInBytes)
keyType
- type of key to be calculated.keySizeInBytes
- the number of bytes to be produced.byte[][] deriveKeyAndIV(PasswordBasedDeriver.KeyType keyType, int keySizeInBytes, int ivSizeInBytes)
keyType
- type of key to be calculated.keySizeInBytes
- the number of bytes to be produced.ivSizeInBytes
- the number of bytes to be produced.