Interface KDFHmacSpec

All Superinterfaces:
AlgorithmParameterSpec

public interface KDFHmacSpec extends 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 Summary

    Modifier and Type
    Method
    Description
    byte
    Returns the HMAC Algorithm associated with the derivation function.
    byte[]
    Gets the info.
    short
    Returns the KDF output length in bytes.
    byte[]
    Gets the salt.
    byte[]
    Gets the secret value for the key derivation function.
  • 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 to DerivationFunction.nextBytes(byte[], short, short) or DerivationFunction.nextBytes(javacard.security.SecretKey).
      Returns:
      the output length