Package cn.gmkit.core
Enum SM4CipherMode
- All Implemented Interfaces:
Serializable,Comparable<SM4CipherMode>,java.lang.constant.Constable
SM4 工作模式。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionboolean判断当前模式是否表现为流式模式。static SM4CipherModeReturns the enum constant of this type with the specified name.static SM4CipherMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ECB
电子密码本模式(Electronic Codebook) -
CBC
密码分组链接模式(Cipher Block Chaining) -
CTR
计数器模式(Counter) -
CFB
密文反馈模式(Cipher Feedback) -
OFB
输出反馈模式(Output Feedback) -
GCM
伽罗瓦/计数器模式(Galois/Counter Mode) -
CCM
计数器与CBC-MAC模式(Counter with CBC-MAC)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isStreamLike
public boolean isStreamLike()判断当前模式是否表现为流式模式。- Returns:
- 流式模式返回
true
-