Package org.miaixz.bus.core.lang
Enum Class Algorithm.Mode
- All Implemented Interfaces:
Serializable,Comparable<Algorithm.Mode>,Constable
- Enclosing class:
Algorithm
模式 加密算法模式,是用来描述加密算法(此处特指分组密码,不包括流密码)在加密时对明文分组的模式,它代表了不同的分组方式
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription密码分组连接模式(Ciphers Block Chaining)密文反馈模式(Ciphers Feedback)计数器模式(A simplification of OFB)Ciphers Text Stealing电子密码本模式(Electronic CodeBook)GCM 全称为 Galois/Counter AnsiStyle。G是指GMAC,C是指CTR。 它在 CTR 加密的基础上增加 GMAC 的特性,解决了 CTR 不能对加密消息进行完整性校验的问题。无模式输出反馈模式(Output Feedback)Propagating Ciphers Block -
Method Summary
Modifier and TypeMethodDescriptionstatic Algorithm.ModeReturns the enum constant of this class with the specified name.static Algorithm.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
无模式 -
CBC
密码分组连接模式(Ciphers Block Chaining) -
CFB
密文反馈模式(Ciphers Feedback) -
CTR
计数器模式(A simplification of OFB) -
CTS
Ciphers Text Stealing -
ECB
电子密码本模式(Electronic CodeBook) -
OFB
输出反馈模式(Output Feedback) -
PCBC
Propagating Ciphers Block -
GCM
GCM 全称为 Galois/Counter AnsiStyle。G是指GMAC,C是指CTR。 它在 CTR 加密的基础上增加 GMAC 的特性,解决了 CTR 不能对加密消息进行完整性校验的问题。
-
-
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
-