Enum HpkeSuite.KDF
- All Implemented Interfaces:
Serializable, Comparable<HpkeSuite.KDF>, java.lang.constant.Constable
- Enclosing class:
HpkeSuite
Key Derivation Functions (KDFs)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HpkeSuite.KDFforId(int id) Returns the KDF value for a given id.intDeprecated.intgetId()KDF idDeprecated.intThe length in bytes for the output extract function.longReturns the maximum export length that can be supported with this KDF.static HpkeSuite.KDFReturns the enum constant of this type with the specified name.static HpkeSuite.KDF[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HKDF_SHA256
-
-
Field Details
-
id
private final int id -
hLength
private final int hLength -
hName
-
-
Constructor Details
-
KDF
-
-
Method Details
-
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
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 nameNullPointerException- 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. -
maxExportLength
public long maxExportLength()Returns the maximum export length that can be supported with this KDF.- See Also:
-
getMacAlgorithmName
-
getMacName
-
forId
Returns the KDF value for a given id.
-