Interface KDFHmacSpec
- All Superinterfaces:
AlgorithmParameterSpec
This interface specifies the set of parameters used to instantiate a
DerivationFunction implementing the HKDF Key Derivation function defined in
in IETF RFC 5869.
This interface is bound to the constant DerivationFunction.ALG_KDF_HKDF.
- Since:
- 3.1
- See Also:
-
Method Details
-
getAlgorithm
byte getAlgorithm()Returns the HMAC Algorithm associated with the derivation function.- Returns:
- the HMAC algorithm associated with the derivation function
- See Also:
-
getSecret
byte[] getSecret()Gets the secret value for the key derivation function.It may be an array view.
- Returns:
- the secret value
-
getInfo
byte[] getInfo()Gets the info.It may be an array view. It may be null.
- Returns:
- the salt
-
getSalt
byte[] getSalt()Gets the salt.It may be an array view. It may be null.
- Returns:
- the salt
-
getOutputLength
short getOutputLength()Returns the KDF output length in bytes. It specifies the total length of data that can be generated using subsequent calls toDerivationFunction.nextBytes(byte[], short, short)orDerivationFunction.nextBytes(javacard.security.SecretKey).- Returns:
- the output length
-