public enum Padding extends Enum<Padding>
补码方式是在分组密码中,当明文长度不是分组长度的整数倍时,需要在最后一个分组中填充一些数据使其凑满一个分组的长度。
Enum Constant and Description |
---|
ISO10126Padding
This padding for block ciphers is described in 5.2 Block Encryption Algorithms in the W3C's "XML Encryption Syntax and Processing" document.
|
NoPadding
无补码
|
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.
|
SSL3Padding
The padding scheme defined in the SSL Protocol Version 3.0, November 18, 1996, section 5.2.3.2 (CBC block cipher)
|
ZeroPadding
0补码,即不满block长度时使用0填充
|
Modifier and Type | Method and Description |
---|---|
static Padding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Padding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Padding NoPadding
public static final Padding ZeroPadding
public static final Padding ISO10126Padding
public static final Padding OAEPPadding
public static final Padding PKCS1Padding
public static final Padding PKCS5Padding
public static final Padding SSL3Padding
public static Padding[] values()
for (Padding c : Padding.values()) System.out.println(c);
public static Padding 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.