All Packages Class Hierarchy This Package Previous Next Index
Class Acme.Crypto.AesCipher
java.lang.Object
|
+----Acme.Crypto.CryptoUtils
|
+----Acme.Crypto.Cipher
|
+----Acme.Crypto.BlockCipher
|
+----Acme.Crypto.AesCipher
- public class AesCipher
- extends BlockCipher
The AES encryption method.
Before being selected as the Advanced Encryption Standard this was
known as Rijndael, and was designed by Joan Daemen and Vincent Rijmen.
Fetch the software.
Fetch the entire Acme package.
- See Also:
- EncryptedOutputStream, EncryptedInputStream
-
BLOCK_SIZE
-
-
KEY_SIZE
-
-
AesCipher(byte[])
-
-
AesCipher(String)
-
-
decrypt(byte[], int, byte[], int)
- Decrypt a block.
-
encrypt(byte[], int, byte[], int)
- Encrypt a block.
-
getRounds(int, int)
- Return the number of rounds for a given Rijndael's key and block sizes.
-
main(String[])
- Test routine.
-
setKey(byte[])
- Set the key.
KEY_SIZE
public static final int KEY_SIZE
BLOCK_SIZE
public static final int BLOCK_SIZE
AesCipher
public AesCipher(String keyStr)
AesCipher
public AesCipher(byte key[])
getRounds
public static int getRounds(int keySize,
int blockSize)
- Return the number of rounds for a given Rijndael's key and block sizes.
- Parameters:
- keySize - The size of the user key material in bytes.
- blockSize - The desired block size in bytes.
- Returns:
- The number of rounds for a given Rijndael's key and block sizes.
setKey
public void setKey(byte key[])
- Set the key.
- Overrides:
- setKey in class Cipher
encrypt
public void encrypt(byte clearText[],
int clearOff,
byte cipherText[],
int cipherOff)
- Encrypt a block.
- Overrides:
- encrypt in class BlockCipher
decrypt
public void decrypt(byte cipherText[],
int cipherOff,
byte clearText[],
int clearOff)
- Decrypt a block.
- Overrides:
- decrypt in class BlockCipher
main
public static void main(String args[])
- Test routine.
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs