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

Variable Index

 o BLOCK_SIZE
 o KEY_SIZE

Constructor Index

 o AesCipher(byte[])
 o AesCipher(String)

Method Index

 o decrypt(byte[], int, byte[], int)
Decrypt a block.
 o encrypt(byte[], int, byte[], int)
Encrypt a block.
 o getRounds(int, int)
Return the number of rounds for a given Rijndael's key and block sizes.
 o main(String[])
Test routine.
 o setKey(byte[])
Set the key.

Variables

 o KEY_SIZE
 public static final int KEY_SIZE
 o BLOCK_SIZE
 public static final int BLOCK_SIZE

Constructors

 o AesCipher
 public AesCipher(String keyStr)
 o AesCipher
 public AesCipher(byte key[])

Methods

 o 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.
 o setKey
 public void setKey(byte key[])
Set the key.

Overrides:
setKey in class Cipher
 o encrypt
 public void encrypt(byte clearText[],
                     int clearOff,
                     byte cipherText[],
                     int cipherOff)
Encrypt a block.

Overrides:
encrypt in class BlockCipher
 o decrypt
 public void decrypt(byte cipherText[],
                     int cipherOff,
                     byte clearText[],
                     int clearOff)
Decrypt a block.

Overrides:
decrypt in class BlockCipher
 o main
 public static void main(String args[])
Test routine.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs