Enum Class GordianGOSTElliptic
java.lang.Object
java.lang.Enum<GordianGOSTElliptic>
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianGOSTElliptic
- All Implemented Interfaces:
GordianElliptic,Serializable,Comparable<GordianGOSTElliptic>,Constable
Named GOST-2012 Elliptic Curves.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic GordianGOSTEllipticgetCurveForName(String pName) Obtain the curve for a Name.Obtain the name of the curve.intObtain the bitSize of the curve.toString()static GordianGOSTEllipticReturns the enum constant of this class with the specified name.static GordianGOSTElliptic[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianElliptic
canEncrypt, hasCustomCurve
-
Enum Constant Details
-
GOST512A
512-paramSetA. -
GOST512B
512-paramSetB. -
GOST512C
512-paramSetC. -
GOST256A
256-paramSetA.
-
-
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
-
getCurveName
Description copied from interface:GordianEllipticObtain the name of the curve.- Specified by:
getCurveNamein interfaceGordianElliptic- Returns:
- the name
-
getKeySize
public int getKeySize()Description copied from interface:GordianEllipticObtain the bitSize of the curve.- Specified by:
getKeySizein interfaceGordianElliptic- Returns:
- the size
-
getCurveForName
Obtain the curve for a Name.- Parameters:
pName- the name- Returns:
- the curve
-
toString
- Overrides:
toStringin classEnum<GordianGOSTElliptic>
-