Enum HpkeSuite.AEAD
- All Implemented Interfaces:
Serializable, Comparable<HpkeSuite.AEAD>, java.lang.constant.Constable
- Enclosing class:
HpkeSuite
-
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.AEADforId(int id) Returns the AEAD value for a given id.intgetId()AEAD id in its decimal representationintintgetNk()Deprecated.intgetNn()Deprecated.intintgetNt()Deprecated.intstatic HpkeSuite.AEADReturns the enum constant of this type with the specified name.static HpkeSuite.AEAD[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AES_128_GCM
-
AES_256_GCM
-
CHACHA20POLY1305
-
-
Field Details
-
id
private final int id -
nk
private final int nk -
nn
private final int nn -
nt
private final int nt
-
-
Constructor Details
-
AEAD
private AEAD(int id, int nk, int nn, int nt)
-
-
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()AEAD id in its decimal representation- Returns:
- AEAD id
- See Also:
-
getNk
Deprecated.Returns the length in bytes of a key for this algorithm.- Returns:
- AEAD Nk
- See Also:
-
getKeyLength
public int getKeyLength() -
getNn
Deprecated.Returns the length in bytes of a nonce for this algorithm.- Returns:
- AEAD Nn
- See Also:
-
getNonceLength
public int getNonceLength() -
getNt
Deprecated.Returns the length in bytes of the AEAD authentication tag for this algorithm.- Returns:
- AEAD Nt
- See Also:
-
getTagLength
public int getTagLength() -
forId
Returns the AEAD value for a given id.
-