A symmetric key block cipher is a function that maps n-bit plaintext blocks to n-bit ciphertext blocks; n being the cipher's block size. This encryption function is parameterised by a k-bit key, and is invertible. Its inverse is the decryption function.
Possible initialisation values for an instance of this type are:
reset()is invoked on the instance. Furthermore, the size of this key material shall be taken as an indication on the key size in which to operate this instance.
IMPLEMENTATION NOTE: Although all the concrete classes in this package implement the Cloneable interface, it is important to note here that such an operation DOES NOT clone any session key material that may have been used in initialising the source cipher (the instance to be cloned). Instead a clone of an already initialised cipher is another instance that operates with the same block size but without any knowledge of neither key material nor key size.
Public Member Functions
|int||currentBlockSize () throws IllegalStateException|
|void||decryptBlock (byte in, int inOffset, byte out, int outOffset) throws IllegalStateException|
|void||encryptBlock (byte in, int inOffset, byte out, int outOffset) throws IllegalStateException|
|void||init (Map attributes) throws InvalidKeyException, IllegalStateException|
|String||KEY_MATERIAL = "gnu.crypto.cipher.key.material"|
|String||CIPHER_BLOCK_SIZE = "gnu.crypto.cipher.block.size"|