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.UnsupportedCipherException
public Rijndael()
public static java.lang.String getProviderName()
public final int getBlockSize()
BlockCipher
getBlockSize
in interface BlockCipher
public final int getKeySize()
BlockCipher
getKeySize
in interface BlockCipher
public final void initialize(byte[] key)
BlockCipher
initialize
in interface BlockCipher
public final void encipher(byte[] block, byte[] result)
BlockCipher
encipher
in interface BlockCipher
public final void decipher(byte[] block, byte[] result)
BlockCipher
decipher
in interface BlockCipher