public class AesJCE extends Aes
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM
Cipher algorithm.
|
static String |
MODE
Cipher mode.
|
static String |
PADDING
Cipher padding.
|
static String |
TRANSFORMATION
Cipher transformation.
|
BLOCK_SIZE, BLOCK_SIZE_IN_BYTES, KEY_SIZE, KEY_SIZE_IN_BYTES| Constructor and Description |
|---|
AesJCE(byte[] key)
Creates a new instance.
|
public static final String ALGORITHM
public static final String MODE
public static final String PADDING
public static final String TRANSFORMATION
public AesJCE(byte[] key)
key - encryption keypublic byte[] encrypt(byte[] iv,
byte[] decrypted)
Aesdecrypted. Any implementation/provider specific
exception will thrown as wrapped in a RuntimeException.public byte[] decrypt(byte[] iv,
byte[] encrypted)
Aesencrypted. Any implementation/provider specific
exception will be thrown as wrapped in a RuntimeException.Copyright © 2011-2013. All Rights Reserved.