Package org.conscrypt

Enum HpkeSuite.KEM

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int id  
      private int nEnc  
      private int nPk  
      private int nSecret  
      private int nSk  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private KEM​(int id, int nSecret, int nEnc, int nPk, int nSk)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static HpkeSuite.KEM forId​(int id)
      Returns the KEM value for a given id.
      int getEncapsulatedLength()  
      int getId()
      KEM id
      int getnEnc()
      Deprecated.
      int getPrivateKeyLength()
      Returns The length in bytes of an encoded private key for this KEM.
      int getPublicKeyLength()
      Returns the length in bytes of an encoded public key for this KEM.
      int getSecretLength()
      Returns the length in bytes of a KEM shared secret produced by this KEM.
      static HpkeSuite.KEM valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static HpkeSuite.KEM[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        private final int id
      • nSecret

        private final int nSecret
      • nEnc

        private final int nEnc
      • nPk

        private final int nPk
      • nSk

        private final int nSk
    • Constructor Detail

      • KEM

        private KEM​(int id,
                    int nSecret,
                    int nEnc,
                    int nPk,
                    int nSk)
    • Method Detail

      • values

        public static HpkeSuite.KEM[] 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.KEM c : HpkeSuite.KEM.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.KEM 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()
        KEM id
        Returns:
        kem id
        See Also:
        KEM ids
      • getnEnc

        @Deprecated
        public int getnEnc()
        Deprecated.
        Returns the length in bytes of an encapsulated key produced by this KEM.
      • getEncapsulatedLength

        public int getEncapsulatedLength()
      • getSecretLength

        public int getSecretLength()
        Returns the length in bytes of a KEM shared secret produced by this KEM.
      • getPublicKeyLength

        public int getPublicKeyLength()
        Returns the length in bytes of an encoded public key for this KEM.
      • getPrivateKeyLength

        public int getPrivateKeyLength()
        Returns The length in bytes of an encoded private key for this KEM.
      • forId

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