Enum Class FrodoKeyGenSpec.Variant

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

public static enum FrodoKeyGenSpec.Variant extends Enum<FrodoKeyGenSpec.Variant>
Enumerates the standardized FrodoKEM parameter sets.

Each variant fixes matrix dimensions, modulus, and error distribution parameters. They balance security and performance at three target NIST security levels (128, 192, 256 bits).

Since:
1.0
  • Enum Constant Details

    • FRODO_640_AES

      public static final FrodoKeyGenSpec.Variant FRODO_640_AES
      128-bit security, AES-based pseudorandomness.
    • FRODO_640_SHAKE

      public static final FrodoKeyGenSpec.Variant FRODO_640_SHAKE
      128-bit security, SHAKE-based pseudorandomness.
    • FRODO_976_AES

      public static final FrodoKeyGenSpec.Variant FRODO_976_AES
      ~192-bit security, AES-based pseudorandomness.
    • FRODO_976_SHAKE

      public static final FrodoKeyGenSpec.Variant FRODO_976_SHAKE
      ~192-bit security, SHAKE-based pseudorandomness.
    • FRODO_1344_AES

      public static final FrodoKeyGenSpec.Variant FRODO_1344_AES
      ~256-bit security, AES-based pseudorandomness.
    • FRODO_1344_SHAKE

      public static final FrodoKeyGenSpec.Variant FRODO_1344_SHAKE
      ~256-bit security, SHAKE-based pseudorandomness.
  • Method Details

    • values

      public static FrodoKeyGenSpec.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 FrodoKeyGenSpec.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