public enum EncType extends Enum<EncType>
| Enum Constant and Description |
|---|
EC_P256Used by i2pd. |
EC_P384Reserved, not used by anybody. |
EC_P521Reserved, not used by anybody. |
ECIES_X25519Proposal 144. |
ELGAMAL_20482048-bit MODP Group from RFC 3526. |
MLKEM1024_X25519Proposal 169. |
MLKEM1024_X25519_CTFor internal use only (Bob side ciphertext)
Proposal 169. |
MLKEM1024_X25519_INTFor internal use only (Alice side)
Proposal 169. |
MLKEM512_X25519Proposal 169. |
MLKEM512_X25519_CTFor internal use only (Bob side ciphertext)
Proposal 169. |
MLKEM512_X25519_INTFor internal use only (Alice side)
Proposal 169. |
MLKEM768_X25519Proposal 169. |
MLKEM768_X25519_CTFor internal use only (Bob side ciphertext)
Proposal 169. |
MLKEM768_X25519_INTFor internal use only (Alice side)
Proposal 169. |
| Modifier and Type | Method and Description |
|---|---|
String | getAlgorithmName()the standard name used for the Java crypto factories |
EncAlgo | getBaseAlgorithm()the standard base algorithm name used for the Java crypto factories |
static EncType | getByCode(int code)encryption type by code. |
int | getCode()the unique identifier for this type |
AlgorithmParameterSpec | getParams()The elliptic curve ECParameterSpec for ECDSA; DSAParameterSpec for DSA |
int | getPrivkeyLen()the length of the private key, in bytes |
int | getPubkeyLen()the length of the public key, in bytes |
String | getSupportedSince()The router version in which this type was first supported. |
boolean | isAvailable()Checks if this encryption type is available in the JVM. |
static boolean | isAvailable(int code)Checks if the encryption type with the given code is available. |
static boolean | isAvailable(String stype)Checks if the encryption type with the given name or number is available. |
boolean | isPQ()Checks if this is a post-quantum encryption type. |
static EncType | parseEncType(String stype)Convenience for user apps |
static EncType | valueOf(String name)Returns the enum constant of this type with the specified name. |
static EncType[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. |
public static final EncType EC_P256
public static final EncType EC_P384
public static final EncType EC_P521
public static final EncType ECIES_X25519
public static final EncType ELGAMAL_2048
public static final EncType MLKEM1024_X25519
public static final EncType MLKEM1024_X25519_CT
public static final EncType MLKEM1024_X25519_INT
public static final EncType MLKEM512_X25519
public static final EncType MLKEM512_X25519_CT
public static final EncType MLKEM512_X25519_INT
public static final EncType MLKEM768_X25519
public static final EncType MLKEM768_X25519_CT
public static final EncType MLKEM768_X25519_INT
public String getAlgorithmName()
public EncAlgo getBaseAlgorithm()
public static EncType getByCode(int code)
public int getCode()
public AlgorithmParameterSpec getParams() throws InvalidParameterSpecException
InvalidParameterSpecException - if the algorithm is not available on this JVM.public int getPrivkeyLen()
public int getPubkeyLen()
public String getSupportedSince()
public boolean isAvailable()
public static boolean isAvailable(int code)
public static boolean isAvailable(String stype)
stype - number or namepublic boolean isPQ()
public static EncType parseEncType(String stype)
stype - number or namepublic static EncType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static EncType[] values()
for (EncType c : EncType.values()) System.out.println(c);