public static final class KeyDerivationFunction.KdfConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
infoParam |
int |
outLengthByte |
| Constructor and Description |
|---|
KdfConfig(byte[] infoParam,
int outLengthByte)
Create new instance.
|
public KdfConfig(byte[] infoParam,
int outLengthByte)
infoParam - optional parameter that can be used to pin the key material to a specific context (e.g.
creating a MAC and AES key from same password, just pass "mac".getBytes()
and "aes".getBytes() as parameter. Can be null.outLengthByte - how many bytes long the resulting key material should be (usually 16 or 32 bytes)Copyright © 2018. All rights reserved.