|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmemetic.crypto.AESCrypt
public class AESCrypt
Encrypts and decrypts data using AES algorithm
| Field Summary | |
|---|---|
static java.lang.String |
TYPE
The AES encryption type |
| Constructor Summary | |
|---|---|
AESCrypt(java.lang.String password)
Creates a new AESCrypt |
|
| Method Summary | |
|---|---|
int |
decrypt(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
Decrypts the input |
int |
encrypt(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
Encrypts the input |
int |
getBlockSize()
Returns the size of the block of the encryption or decryption |
int |
getDecryptOutputSize(int inputSize)
Returns the maximum size the output buffer needs to be |
int |
getEncryptOutputSize(int inputSize)
Returns the maximum size the output buffer needs to be |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE
| Constructor Detail |
|---|
public AESCrypt(java.lang.String password)
password - The encryption password| Method Detail |
|---|
public int encrypt(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
throws javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
Crypt
encrypt in interface Cryptinput - The input to be encryptedoffset - The offset into the input buffer where the input startslength - The length of the inputoutput - The output bufferoutOffset - The offset into the output buffer where to store the output
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.ShortBufferException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyExceptionCrypt.encrypt(byte[], int, int, byte[], int)
public int decrypt(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
throws javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
Crypt
decrypt in interface Cryptinput - The input to be decryptedoffset - The offset into the input buffer where the input startslength - The length of the inputoutput - The output bufferoutOffset - The offset into the output buffer where to store the output
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.ShortBufferException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyExceptionCrypt.decrypt(byte[], int, int, byte[], int)public int getEncryptOutputSize(int inputSize)
Crypt
getEncryptOutputSize in interface CryptinputSize - The size of the input to be encrypted
Crypt.getEncryptOutputSize(int)public int getDecryptOutputSize(int inputSize)
Crypt
getDecryptOutputSize in interface CryptinputSize - The size of the input to be decrypted
Crypt.getDecryptOutputSize(int)public int getBlockSize()
Crypt
getBlockSize in interface CryptCrypt.getBlockSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||