public final class AES
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AES.Mode
encryption operating modes
|
| Constructor and Description |
|---|
AES() |
| Modifier and Type | Method and Description |
|---|---|
void |
CMNDecrypt(byte[] buf,
int start,
int len,
byte[] IV)
used to decrypt a byte buffer.
|
void |
CMNEncrypt(byte[] buf,
int start,
int len,
byte[] IV)
used to encrypt a byte buffer.
|
void |
encFree()
used to free allocated resources.
|
protected void |
finalize()
Destroy all sensitive information in this object.
|
void |
initializeEnc(byte[] Key,
int KeyLen,
AES.Mode m)
initialize the encryption class.
|
public void initializeEnc(byte[] Key,
int KeyLen,
AES.Mode m)
CMNEncrypt to decrypt use CMNDecryptKey - the key to be usedKeyLen - the active key lengthm - the operation mode CBC - ECBpublic void CMNEncrypt(byte[] buf,
int start,
int len,
byte[] IV)
InitializeEnc to
initialize the class.buf - the byte buffer to be encryptedstart - the encryption start position in the byte bufferlen - the length to be encryptedIV - the initial vector to be usedpublic void CMNDecrypt(byte[] buf,
int start,
int len,
byte[] IV)
InitializeEnc to
initialize the class.buf - the byte buffer to be decryptedstart - the decryption start position in the byte bufferlen - the length to be decryptedIV - the initial vector to be usedpublic void encFree()
protected final void finalize()
finalize in class java.lang.Object