public class Rijndael extends java.lang.Object implements BlockCipher
| Modifier and Type | Field and Description |
|---|---|
static java.security.Provider |
AesCtrProvider |
| Constructor and Description |
|---|
Rijndael() |
Rijndael(int keysize,
int blocksize)
Create a Rijndael instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decipher(byte[] block,
byte[] result)
Deciphers the contents of block where block must be equal
to getBlockSize()/8.
|
void |
encipher(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
|
static java.lang.String |
getProviderName() |
void |
initialize(byte[] key)
Initializes the cipher context with the given key.
|
public Rijndael(int keysize,
int blocksize)
throws UnsupportedCipherException
keysize - The key size.blocksize - The block size.UnsupportedCipherExceptionpublic Rijndael()
public static java.lang.String getProviderName()
public final int getBlockSize()
BlockCiphergetBlockSize in interface BlockCipherpublic final int getKeySize()
BlockCiphergetKeySize in interface BlockCipherpublic final void initialize(byte[] key)
BlockCipherinitialize in interface BlockCipherpublic final void encipher(byte[] block,
byte[] result)
BlockCipherencipher in interface BlockCipherpublic final void decipher(byte[] block,
byte[] result)
BlockCipherdecipher in interface BlockCipher