Package org.conscrypt

Enum HpkeSuite.AEAD

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int id  
      private int nk  
      private int nn  
      private int nt  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AEAD​(int id, int nk, int nn, int nt)  
    • Field Detail

      • id

        private final int id
      • nk

        private final int nk
      • nn

        private final int nn
      • nt

        private final int nt
    • Constructor Detail

      • AEAD

        private AEAD​(int id,
                     int nk,
                     int nn,
                     int nt)
    • 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 name
        java.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.