- All Implemented Interfaces:
Serializable,Comparable<Padding>,Constable
补码方式 补码方式是在分组密码中,当明文长度不是分组长度的整数倍时,需要在最后一个分组中填充一些数据使其凑满一个分组的长度。
- Since:
- Java 17+
- Author:
- Kimi Liu
- 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 ConstantDescriptionThis padding for block ciphers is described in 5.2 Block Encryption Algorithms in the W3C's "XML Encryption Syntax and Processing" document.无补码Optimal Asymmetric Encryption Padding scheme defined in PKCS1The padding scheme described in PKCS #1, used with the RSA algorithmThe padding scheme described in RSA Laboratories, "PKCS #5: Password-Based Encryption Standard," version 1.5, November 1993.The padding scheme described in RSA Laboratories, "PKCS #7: Password-Based Encryption Standard," version 1.5, November 1993.The padding scheme defined in the SSL Protocol Version 3.0, November 18, 1996, section 5.2.3.2 (CBC block cipher)0补码,即不满block长度时使用0填充 -
Method Summary
-
Enum Constant Details
-
NoPadding
无补码 -
ZeroPadding
0补码,即不满block长度时使用0填充 -
ISO10126Padding
This padding for block ciphers is described in 5.2 Block Encryption Algorithms in the W3C's "XML Encryption Syntax and Processing" document. -
OAEPPadding
Optimal Asymmetric Encryption Padding scheme defined in PKCS1 -
PKCS1Padding
The padding scheme described in PKCS #1, used with the RSA algorithm -
PKCS5Padding
The padding scheme described in RSA Laboratories, "PKCS #5: Password-Based Encryption Standard," version 1.5, November 1993. -
PKCS7Padding
The padding scheme described in RSA Laboratories, "PKCS #7: Password-Based Encryption Standard," version 1.5, November 1993. -
SSL3Padding
The padding scheme defined in the SSL Protocol Version 3.0, November 18, 1996, section 5.2.3.2 (CBC block cipher)
-
-
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
-