public class HKDFParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
Constructor and Description |
---|
HKDFParameterSpec(byte[] salt)
Construct parameters for HKDF, specifying just optional salt.
|
HKDFParameterSpec(byte[] salt,
byte[] info)
Construct parameters for HKDF, specifying both the optional salt and
optional info.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getInfo()
Returns the info field, which may be empty (null is converted to empty).
|
byte[] |
getSalt()
Returns the salt, or null if the salt should be generated as a byte array
of HashLen zeros.
|
public HKDFParameterSpec(byte[] salt, byte[] info)
salt
- the salt to use, may be null for a salt for hashLen zerosinfo
- the info to use, may be null for an info field of zero bytespublic HKDFParameterSpec(byte[] salt)
salt
- the salt to use, may be null for a salt for hashLen zerospublic byte[] getSalt()
public byte[] getInfo()