Package org.bouncycastle.crypto.internal
Enum BlockCipherMode
- java.lang.Object
-
- java.lang.Enum<BlockCipherMode>
-
- org.bouncycastle.crypto.internal.BlockCipherMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BlockCipherMode>
public enum BlockCipherMode extends java.lang.Enum<BlockCipherMode>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
createDefaultIV(int blockSize, java.security.SecureRandom random)
boolean
expectsIV()
java.lang.String
getCode()
static BlockCipherMode
getMode(Algorithm algorithm)
static BlockCipherMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BlockCipherMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ECB
public static final BlockCipherMode ECB
-
CBC
public static final BlockCipherMode CBC
-
CBCMAC
public static final BlockCipherMode CBCMAC
-
CFB8
public static final BlockCipherMode CFB8
-
CFB16
public static final BlockCipherMode CFB16
-
CFB32
public static final BlockCipherMode CFB32
-
CFB64
public static final BlockCipherMode CFB64
-
CFB128
public static final BlockCipherMode CFB128
-
CFB256
public static final BlockCipherMode CFB256
-
OFB8
public static final BlockCipherMode OFB8
-
OFB16
public static final BlockCipherMode OFB16
-
OFB32
public static final BlockCipherMode OFB32
-
OFB64
public static final BlockCipherMode OFB64
-
OFB128
public static final BlockCipherMode OFB128
-
OFB256
public static final BlockCipherMode OFB256
-
CTR
public static final BlockCipherMode CTR
-
GCM
public static final BlockCipherMode GCM
-
CCM
public static final BlockCipherMode CCM
-
OCB
public static final BlockCipherMode OCB
-
EAX
public static final BlockCipherMode EAX
-
GOSTMAC
public static final BlockCipherMode GOSTMAC
-
CMAC
public static final BlockCipherMode CMAC
-
GMAC
public static final BlockCipherMode GMAC
-
WRAP
public static final BlockCipherMode WRAP
-
WRAPPAD
public static final BlockCipherMode WRAPPAD
-
RFC3217_WRAP
public static final BlockCipherMode RFC3217_WRAP
-
RFC3211_WRAP
public static final BlockCipherMode RFC3211_WRAP
-
OpenPGPCFB
public static final BlockCipherMode OpenPGPCFB
-
GCFB
public static final BlockCipherMode GCFB
-
GOFB
public static final BlockCipherMode GOFB
-
CFB8MAC
public static final BlockCipherMode CFB8MAC
-
ISO9797alg3
public static final BlockCipherMode ISO9797alg3
-
-
Method Detail
-
values
public static BlockCipherMode[] 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 (BlockCipherMode c : BlockCipherMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockCipherMode 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
-
getCode
public java.lang.String getCode()
-
getMode
public static BlockCipherMode getMode(Algorithm algorithm)
-
expectsIV
public boolean expectsIV()
-
createDefaultIV
public byte[] createDefaultIV(int blockSize, java.security.SecureRandom random)
-
-