|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gregoire.util.crypto.Rijndael
Interfaces with the Rijndael AES candidate to implement the Rijndael algorithm
Constructor Summary | |
Rijndael()
|
|
Rijndael(int keysize)
|
|
Rijndael(java.lang.Integer keysize)
|
|
Rijndael(int keysize,
int blocksize)
|
Method Summary | |
void |
decrypt(byte[] block,
byte[] result)
Deciphers the contents of block where block must be equal to getBlockSize()/8. |
void |
encrypt(byte[] block,
byte[] result)
Enciphers the contents of block where block must be equal to getBlockSize()/8. |
int |
getBlockSize()
Returns the block size, in bits, of the given block-cipher |
int |
getKeySize()
Returns the key size, in bits, of the given block-cipher |
void |
initialize(byte[] key)
Initializes the cipher context with the given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Rijndael(java.lang.Integer keysize) throws java.security.InvalidKeyException
public Rijndael(int keysize) throws java.security.InvalidKeyException
public Rijndael(int keysize, int blocksize) throws java.security.InvalidKeyException
public Rijndael()
Method Detail |
public final int getBlockSize()
BlockCipher
getBlockSize
in interface BlockCipher
public final int getKeySize()
BlockCipher
getKeySize
in interface BlockCipher
public void initialize(byte[] key)
BlockCipher
initialize
in interface BlockCipher
public final void encrypt(byte[] block, byte[] result)
BlockCipher
encrypt
in interface BlockCipher
public final void decrypt(byte[] block, byte[] result)
BlockCipher
decrypt
in interface BlockCipher
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |