Package org.apache.commons.crypto.cipher
Enum OpenSslEvpCtrlValues
- java.lang.Object
-
- java.lang.Enum<OpenSslEvpCtrlValues>
-
- org.apache.commons.crypto.cipher.OpenSslEvpCtrlValues
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OpenSslEvpCtrlValues>
enum OpenSslEvpCtrlValues extends java.lang.Enum<OpenSslEvpCtrlValues>
This enum is defined for OpenSslNative.ctrl() to allow various cipher specific parameters to be determined and set. see the macro definitions in openssl/evp.h
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AEAD_GET_TAG
AEAD_SET_IV_FIXED
AEAD_SET_IVLEN
AEAD_SET_TAG
CCM_SET_L
CCM_SET_MSGLEN
COPY
GCM_IV_GEN
GET_RC2_KEY_BITS
GET_RC5_ROUNDS
INIT
PBE_PRF_NID
RAND_KEY
SET_KEY_LENGTH
SET_RC2_KEY_BITS
SET_RC5_ROUNDS
-
Field Summary
Fields Modifier and Type Field Description private int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
OpenSslEvpCtrlValues(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getValue()
static OpenSslEvpCtrlValues
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OpenSslEvpCtrlValues[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final OpenSslEvpCtrlValues INIT
-
SET_KEY_LENGTH
public static final OpenSslEvpCtrlValues SET_KEY_LENGTH
-
GET_RC2_KEY_BITS
public static final OpenSslEvpCtrlValues GET_RC2_KEY_BITS
-
SET_RC2_KEY_BITS
public static final OpenSslEvpCtrlValues SET_RC2_KEY_BITS
-
GET_RC5_ROUNDS
public static final OpenSslEvpCtrlValues GET_RC5_ROUNDS
-
SET_RC5_ROUNDS
public static final OpenSslEvpCtrlValues SET_RC5_ROUNDS
-
RAND_KEY
public static final OpenSslEvpCtrlValues RAND_KEY
-
PBE_PRF_NID
public static final OpenSslEvpCtrlValues PBE_PRF_NID
-
COPY
public static final OpenSslEvpCtrlValues COPY
-
AEAD_SET_IVLEN
public static final OpenSslEvpCtrlValues AEAD_SET_IVLEN
-
AEAD_GET_TAG
public static final OpenSslEvpCtrlValues AEAD_GET_TAG
-
AEAD_SET_TAG
public static final OpenSslEvpCtrlValues AEAD_SET_TAG
-
AEAD_SET_IV_FIXED
public static final OpenSslEvpCtrlValues AEAD_SET_IV_FIXED
-
GCM_IV_GEN
public static final OpenSslEvpCtrlValues GCM_IV_GEN
-
CCM_SET_L
public static final OpenSslEvpCtrlValues CCM_SET_L
-
CCM_SET_MSGLEN
public static final OpenSslEvpCtrlValues CCM_SET_MSGLEN
-
-
Method Detail
-
values
public static OpenSslEvpCtrlValues[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OpenSslEvpCtrlValues c : OpenSslEvpCtrlValues.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenSslEvpCtrlValues valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
int getValue()
-
-