public class AesBC extends Aes
ALGORITHM, BLOCK_SIZE, BLOCK_SIZE_IN_BYTES, KEY_SIZE, KEY_SIZE_IN_BYTES, MODE, PADDING, TRANSFORMATION| Constructor and Description |
|---|
AesBC(byte[] key)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] iv,
byte[] encrypted)
Decrypts given
encrypted. |
byte[] |
encrypt(byte[] iv,
byte[] decrypted)
Encrypts given
decrypted. |
static Aes |
newSynchronizedInstance(byte[] key)
Creates a new synchronized instance.
|
newIv, synchronizedAespublic AesBC(byte[] key)
key - encryption keypublic static Aes newSynchronizedInstance(byte[] key)
key - the encryption key.public byte[] encrypt(byte[] iv,
byte[] decrypted)
Aesdecrypted.Copyright © 2011-2012. All Rights Reserved.