Enum Class GordianDSAElliptic
java.lang.Object
java.lang.Enum<GordianDSAElliptic>
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianDSAElliptic
- All Implemented Interfaces:
GordianElliptic,Serializable,Comparable<GordianDSAElliptic>,Constable
Named Elliptic Curves.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionbrainpoolp160r1.brainpoolp160t1.brainpoolp192r1.brainpoolp192t1.brainpoolp224r1.brainpoolp224t1.brainpoolp256r1.brainpoolp256t1.brainpoolp320r1.brainpoolp320t1.brainpoolp384r1.brainpoolt384t1.brainpoolp512r1.brainpoolp512t1.c2pnb163v1.c2pnb163v2.c2pnb163v3.c2pnb176w1.c2pnb208w1.c2pnb272w1.c2pnb304w1.c2pnb368w1.c2tnb191v1.c2tnb191r2.c2tnb191v3.c2tnb239v1.c2tnb239v2.c2tnb239v3.c2tnb359v1.c2tnb431r1.prime192v2.prime192v3.prime239v1.prime239v2.prime239v3.secp112r1.secp112r2.secp128r1.secp128r2.secp160k1.secp160r1.secp160r2.secp192k1.secp192r1.secp224k1.secp224r1.secp256k1.secp256r1.secp384r1.secp521r1.sect113r1.sect113r2.secp131r1.sect131r2.sect163k1.secp160r1.sect163r2.sect193r1.sect193r2.sect233k1.sect233r1.sect239k1.sect283k1.sect283r1.sect409k1.sect409r1.sect571k1.sect571r1. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan the curve encrypt?static GordianDSAEllipticgetCurveForName(String pName) Obtain the curve for a Name.Obtain the name of the curve.intObtain the bitSize of the curve.booleanDoes the curve have a custom implementation?toString()static GordianDSAEllipticReturns the enum constant of this class with the specified name.static GordianDSAElliptic[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SECT571K1
sect571k1. -
SECT571R1
sect571r1. -
SECP521R1
secp521r1. -
SECT409K1
sect409k1. -
SECT409R1
sect409r1. -
SECP384R1
secp384r1. -
SECT283K1
sect283k1. -
SECT283R1
sect283r1. -
SECP256K1
secp256k1. -
SECP256R1
secp256r1. -
SECT239K1
sect239k1. -
SECT233K1
sect233k1. -
SECT233R1
sect233r1. -
SECP224K1
secp224k1. -
SECP224R1
secp224r1. -
SECT193R1
sect193r1. -
SECT193R2
sect193r2. -
SECP192K1
secp192k1. -
SECP192R1
secp192r1. -
SECT163K1
sect163k1. -
SECT163R1
secp160r1. -
SECT163R2
sect163r2. -
SECP160K1
secp160k1. -
SECP160R1
secp160r1. -
SECP160R2
secp160r2. -
SECT131R1
secp131r1. -
SECT131R2
sect131r2. -
SECP128R1
secp128r1. -
SECP128R2
secp128r2. -
SECT113R1
sect113r1. -
SECT113R2
sect113r2. -
SECP112R1
secp112r1. -
SECP112R2
secp112r2. -
PRIME239V1
prime239v1. -
PRIME239V2
prime239v2. -
PRIME239V3
prime239v3. -
PRIME192V2
prime192v2. -
PRIME192V3
prime192v3. -
C2TNB431R1
c2tnb431r1. -
C2PNB368W1
c2pnb368w1. -
C2TNB359V1
c2tnb359v1. -
C2PNB304W1
c2pnb304w1. -
C2PNB272W1
c2pnb272w1. -
C2TNB239V1
c2tnb239v1. -
C2TNB239V2
c2tnb239v2. -
C2TNB239V3
c2tnb239v3. -
C2PNB208W1
c2pnb208w1. -
C2TNB191V1
c2tnb191v1. -
C2TNB191V2
c2tnb191r2. -
C2TNB191V3
c2tnb191v3. -
C2PNB176W1
c2pnb176w1. -
C2PNB163V1
c2pnb163v1. -
C2PNB163V2
c2pnb163v2. -
C2PNB163V3
c2pnb163v3. -
BRAINPOOLP512R1
brainpoolp512r1. -
BRAINPOOLP512T1
brainpoolp512t1. -
BRAINPOOLP384R1
brainpoolp384r1. -
BRAINPOOLP384T1
brainpoolt384t1. -
BRAINPOOLP320R1
brainpoolp320r1. -
BRAINPOOLP320T1
brainpoolp320t1. -
BRAINPOOLP256R1
brainpoolp256r1. -
BRAINPOOLP256T1
brainpoolp256t1. -
BRAINPOOLP224R1
brainpoolp224r1. -
BRAINPOOLP224T1
brainpoolp224t1. -
BRAINPOOLP192R1
brainpoolp192r1. -
BRAINPOOLP192T1
brainpoolp192t1. -
BRAINPOOLP160R1
brainpoolp160r1. -
BRAINPOOLP160T1
brainpoolp160t1.
-
-
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<GordianDSAElliptic>
-
canEncrypt
public boolean canEncrypt()Description copied from interface:GordianEllipticCan the curve encrypt?- Specified by:
canEncryptin interfaceGordianElliptic- Returns:
- true/false
-
hasCustomCurve
public boolean hasCustomCurve()Description copied from interface:GordianEllipticDoes the curve have a custom implementation?- Specified by:
hasCustomCurvein interfaceGordianElliptic- Returns:
- true/false
-