Enum Class NtruKeyGenSpec.Variant
- All Implemented Interfaces:
Serializable, Comparable<NtruKeyGenSpec.Variant>, Constable
- Enclosing class:
NtruKeyGenSpec
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNTRU-HPS-2048-509 parameter set.NTRU-HPS-2048-677 parameter set.NTRU-HPS-4096-1229 parameter set.NTRU-HPS-4096-821 parameter set.NTRU-HRSS-1373 parameter set.NTRU-HRSS-701 parameter set. -
Method Summary
Modifier and TypeMethodDescriptionstatic NtruKeyGenSpec.VariantReturns the enum constant of this class with the specified name.static NtruKeyGenSpec.Variant[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HPS2048_509
NTRU-HPS-2048-509 parameter set. -
HPS2048_677
NTRU-HPS-2048-677 parameter set. -
HPS4096_821
NTRU-HPS-4096-821 parameter set. -
HPS4096_1229
NTRU-HPS-4096-1229 parameter set. -
HRSS701
NTRU-HRSS-701 parameter set. Common practical default when using HRSS. -
HRSS1373
NTRU-HRSS-1373 parameter set.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-