public interface BlockCipher
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
|
void |
initialize(byte[] key)
Initializes the cipher context with the given key.
|
void initialize(byte[] key)
int getKeySize()
int getBlockSize()
void encipher(byte[] block, byte[] result)
void decipher(byte[] block, byte[] result)