Enum HpkeSuite.KDF

java.lang.Object
java.lang.Enum<HpkeSuite.KDF>
org.conscrypt.HpkeSuite.KDF
All Implemented Interfaces:
Serializable, Comparable<HpkeSuite.KDF>, java.lang.constant.Constable
Enclosing class:
HpkeSuite

public static enum HpkeSuite.KDF extends Enum<HpkeSuite.KDF>
Key Derivation Functions (KDFs)
See Also:
  • Enum Constant Details

  • Field Details

    • id

      private final int id
    • hLength

      private final int hLength
    • hName

      private final String hName
  • Constructor Details

    • KDF

      private KDF(int id, int hLength, String hName)
  • Method Details

    • values

      public static HpkeSuite.KDF[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HpkeSuite.KDF valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      KDF id
      Returns:
      kdf id
      See Also:
    • getMacLength

      public int getMacLength()
      The length in bytes for the output extract function.
      Returns:
      extract output size in bytes
    • getHLength

      @Deprecated public int getHLength()
      Deprecated.
    • maxExportLength

      public long maxExportLength()
      Returns the maximum export length that can be supported with this KDF.
      See Also:
    • getMacAlgorithmName

      @Deprecated public String getMacAlgorithmName()
      Deprecated.
      Name as defined in Mac.
      Returns:
      name of mac algorithm used by the kdf.
    • getMacName

      public String getMacName()
    • forId

      public static HpkeSuite.KDF forId(int id)
      Returns the KDF value for a given id.