Package org.conscrypt
Enum HpkeSuite.AEAD
- java.lang.Object
-
- java.lang.Enum<HpkeSuite.AEAD>
-
- org.conscrypt.HpkeSuite.AEAD
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HpkeSuite.AEAD>
- Enclosing class:
- HpkeSuite
public static enum HpkeSuite.AEAD extends java.lang.Enum<HpkeSuite.AEAD>
AEAD ciphers.- See Also:
- AEAD ids
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES_128_GCMAES_256_GCMCHACHA20POLY1305
-
Constructor Summary
Constructors Modifier Constructor Description privateAEAD(int id, int nk, int nn, int nt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HpkeSuite.AEADforId(int id)Returns the AEAD value for a given id.intgetId()AEAD id in its decimal representationintgetKeyLength()intgetNk()Deprecated.intgetNn()Deprecated.intgetNonceLength()intgetNt()Deprecated.intgetTagLength()static HpkeSuite.AEADvalueOf(java.lang.String name)Returns 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 Detail
-
AES_128_GCM
public static final HpkeSuite.AEAD AES_128_GCM
-
AES_256_GCM
public static final HpkeSuite.AEAD AES_256_GCM
-
CHACHA20POLY1305
public static final HpkeSuite.AEAD CHACHA20POLY1305
-
-
Method Detail
-
values
public static HpkeSuite.AEAD[] 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.AEAD c : HpkeSuite.AEAD.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.AEAD 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()
AEAD id in its decimal representation- Returns:
- AEAD id
- See Also:
- AEAD ids
-
getNk
@Deprecated public int getNk()
Deprecated.Returns the length in bytes of a key for this algorithm.- Returns:
- AEAD Nk
- See Also:
- AEAD ids
-
getKeyLength
public int getKeyLength()
-
getNn
@Deprecated public int getNn()
Deprecated.Returns the length in bytes of a nonce for this algorithm.- Returns:
- AEAD Nn
- See Also:
- AEAD ids
-
getNonceLength
public int getNonceLength()
-
getNt
@Deprecated public int getNt()
Deprecated.Returns the length in bytes of the AEAD authentication tag for this algorithm.- Returns:
- AEAD Nt
- See Also:
- AEAD ids
-
getTagLength
public int getTagLength()
-
forId
public static HpkeSuite.AEAD forId(int id)
Returns the AEAD value for a given id.
-
-