Package javacardx.security.derivation
Interface KDFHmacSpec
-
- All Superinterfaces:
AlgorithmParameterSpec
public interface KDFHmacSpec extends AlgorithmParameterSpec
This interface specifies the set of parameters used to instantiate aDerivationFunction
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:
DerivationFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte
getAlgorithm()
Returns the HMAC Algorithm associated with the derivation function.byte[]
getInfo()
Gets the info.short
getOutputLength()
Returns the KDF output length in bytes.byte[]
getSalt()
Gets the salt.byte[]
getSecret()
Gets the secret value for the key derivation function.
-
-
-
Method Detail
-
getAlgorithm
byte getAlgorithm()
Returns the HMAC Algorithm associated with the derivation function.- Returns:
- the HMAC algorithm associated with the derivation function
- See Also:
Signature.ALG_HMAC_SHA1
,Signature.ALG_HMAC_SHA_256
-
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
-
-