public enum HashToCurveProfile extends java.lang.Enum<HashToCurveProfile>
_NU_ is identical to _RO_, except that the encoding type is encode_to_curve. encode_to_curve is not yet implemented in this lib, thus these options are not yet included
| Enum Constant and Description |
|---|
CURVE25519W_XMD_SHA_512_ELL2 |
P256_XMD_SHA_256 |
P384_XMD_SHA_384 |
P521_XMD_SHA_512 |
| Modifier and Type | Method and Description |
|---|---|
int |
getH()
Retrieves the value of the field 'h', representing the cofactor associated with this instance.
|
int |
getK()
Retrieves the security level in bits associated with this instance.
|
int |
getL()
Retrieves the value of the field 'L' representing the internal block size in bytes associated
with this instance.
|
java.lang.Integer |
getmJ()
Retrieves the value of the field 'mJ' representing the associated Montgomery equation parameter A
|
java.lang.Integer |
getmK()
Retrieves the value of the field 'mK' representing the associated Montgomery equation parameter B
specific to the hash-to-curve profile.
|
java.math.BigInteger |
getZ()
Retrieves the value of the field 'Z'.
|
static HashToCurveProfile |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HashToCurveProfile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashToCurveProfile P256_XMD_SHA_256
public static final HashToCurveProfile P384_XMD_SHA_384
public static final HashToCurveProfile P521_XMD_SHA_512
public static final HashToCurveProfile CURVE25519W_XMD_SHA_512_ELL2
public static HashToCurveProfile[] values()
for (HashToCurveProfile c : HashToCurveProfile.values()) System.out.println(c);
public static HashToCurveProfile valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getK()
public int getL()
public java.math.BigInteger getZ()
public int getH()
public java.lang.Integer getmJ()
public java.lang.Integer getmK()