Enum Class NtruKeyGenSpec.Variant

java.lang.Object
java.lang.Enum<NtruKeyGenSpec.Variant>
zeroecho.core.alg.ntru.NtruKeyGenSpec.Variant
All Implemented Interfaces:
Serializable, Comparable<NtruKeyGenSpec.Variant>, Constable
Enclosing class:
NtruKeyGenSpec

public static enum NtruKeyGenSpec.Variant extends Enum<NtruKeyGenSpec.Variant>
Variant enumerates supported NTRU parameter sets for key generation.

The constants reflect the naming used by widely adopted implementations: HPS denotes the NTRU-HPS family and HRSS denotes the NTRU-HRSS family. The numeric suffixes indicate core polynomial dimensions and related parameters used internally by the scheme.

Since:
1.0
  • Enum Constant Details

  • Method Details

    • values

      public static NtruKeyGenSpec.Variant[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NtruKeyGenSpec.Variant valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null