public enum Mode extends Enum<Mode>
加密算法模式,是用来描述加密算法(此处特指分组密码,不包括流密码,)在加密时对明文分组的模式,它代表了不同的分组方式
Enum Constant and Description |
---|
CBC
密码分组连接模式(Cipher Block Chaining)
|
CFB
密文反馈模式(Cipher Feedback)
|
CTR
计数器模式(A simplification of OFB)
|
CTS
Cipher Text Stealing
|
ECB
电子密码本模式(Electronic CodeBook)
|
NONE
无模式
|
OFB
输出反馈模式(Output Feedback)
|
PCBC
Propagating Cipher Block
|
Modifier and Type | Method and Description |
---|---|
static Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mode NONE
public static final Mode CBC
public static final Mode CFB
public static final Mode CTR
public static final Mode CTS
public static final Mode ECB
public static final Mode OFB
public static final Mode PCBC
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode 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 nullCopyright © 2024. All rights reserved.