public abstract class Padding
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Padding.ID
Represents a padding mode value that can be used by block ciphers.
|
| Modifier and Type | Field and Description |
|---|---|
static Padding.ID |
NONE
Indicates that NO padding should be used for block ciphers.
|
static Padding.ID |
PKCS5
Indicates that PKCS5 padding should be used for block ciphers.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Padding()
Empty constructor.
|
public static final Padding.ID NONE
public static final Padding.ID PKCS5
public abstract java.lang.String algName()
public abstract byte[] pad(byte[] bytes,
int blockSize)
throws CipherException
CipherException
public abstract byte[] unpad(byte[] bytes)
throws CipherException
CipherException