Package org.conscrypt
Enum HpkeSuite.KDF
- java.lang.Object
-
- java.lang.Enum<HpkeSuite.KDF>
-
- org.conscrypt.HpkeSuite.KDF
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HpkeSuite.KDF>
- Enclosing class:
- HpkeSuite
public static enum HpkeSuite.KDF extends java.lang.Enum<HpkeSuite.KDF>
Key Derivation Functions (KDFs)- See Also:
- rfc9180
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HKDF_SHA256
-
Constructor Summary
Constructors Modifier Constructor Description privateKDF(int id, int hLength, java.lang.String hName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HpkeSuite.KDFforId(int id)Returns the KDF value for a given id.intgetHLength()Deprecated.intgetId()KDF idjava.lang.StringgetMacAlgorithmName()Deprecated.intgetMacLength()The length in bytes for the output extract function.java.lang.StringgetMacName()longmaxExportLength()Returns the maximum export length that can be supported with this KDF.static HpkeSuite.KDFvalueOf(java.lang.String name)Returns 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 Detail
-
HKDF_SHA256
public static final HpkeSuite.KDF HKDF_SHA256
-
-
Method Detail
-
values
public static HpkeSuite.KDF[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HpkeSuite.KDF c : HpkeSuite.KDF.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HpkeSuite.KDF valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getId
public int getId()
KDF id- Returns:
- kdf id
- See Also:
- KDF ids
-
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:
- secret export
-
getMacAlgorithmName
@Deprecated public java.lang.String getMacAlgorithmName()
Deprecated.Name as defined inMac.- Returns:
- name of mac algorithm used by the kdf.
-
getMacName
public java.lang.String getMacName()
-
forId
public static HpkeSuite.KDF forId(int id)
Returns the KDF value for a given id.
-
-