Enum HpkeSuite.AEAD

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

public static enum HpkeSuite.AEAD extends Enum<HpkeSuite.AEAD>
AEAD ciphers.
See Also:
  • Enum Constant Details

  • 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

      public static HpkeSuite.AEAD[] 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.AEAD 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()
      AEAD id in its decimal representation
      Returns:
      AEAD id
      See Also:
    • getNk

      @Deprecated public int getNk()
      Deprecated.
      Returns the length in bytes of a key for this algorithm.
      Returns:
      AEAD Nk
      See Also:
    • 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:
    • 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:
    • getTagLength

      public int getTagLength()
    • forId

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