public class AESCipher extends Cipher
If you get a totalcross.crypto.CryptoException: Illegal key size
, you must download the strong cryptography files from Oracle
site. In order to do that, go to the ReadMe file whole link is below the download link. In this file, search for "Unlimited Strength Java
Cryptography Extension" and follow the instructions.
chaining, CHAINING_CBC, CHAINING_ECB, CHAINING_NONE, iv, key, nativeHeap, operation, OPERATION_DECRYPT, OPERATION_ENCRYPT, padding, PADDING_NONE, PADDING_PKCS1, PADDING_PKCS5
Constructor and Description |
---|
AESCipher() |
Modifier and Type | Method and Description |
---|---|
protected void |
doReset() |
java.lang.String |
getAlgorithm()
Returns the name of the algorithm.
|
int |
getBlockLength()
Returns the block length.
|
protected boolean |
isChainingSupported(int chaining) |
protected boolean |
isKeySupported(Key key,
int operation) |
protected boolean |
isPaddingSupported(int padding) |
protected byte[] |
process(byte[] data) |
public final java.lang.String getAlgorithm()
getAlgorithm
in class Cipher
public final int getBlockLength()
getBlockLength
in class Cipher
protected final void doReset() throws NoSuchAlgorithmException, CryptoException
doReset
in class Cipher
NoSuchAlgorithmException
CryptoException
protected final byte[] process(byte[] data) throws CryptoException
process
in class Cipher
CryptoException
protected final boolean isKeySupported(Key key, int operation)
isKeySupported
in class Cipher
protected final boolean isChainingSupported(int chaining)
isChainingSupported
in class Cipher
protected final boolean isPaddingSupported(int padding)
isPaddingSupported
in class Cipher