Package org.aoju.bus.crypto
Enum Class Mode
- All Implemented Interfaces:
Serializable,Comparable<Mode>,Constable
模式
加密算法模式,是用来描述加密算法(此处特指分组密码,不包括流密码,)
在加密时对明文分组的模式,它代表了不同的分组方式
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
NONE
无模式 -
CBC
密码分组连接模式(Cipher Block Chaining) -
CFB
密文反馈模式(Cipher Feedback) -
CTR
计数器模式(A simplification of OFB) -
CTS
Cipher Text Stealing -
ECB
电子密码本模式(Electronic CodeBook) -
OFB
输出反馈模式(Output Feedback) -
PCBC
Propagating Cipher Block
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-