BlockCipher
interface BlockCipher
Represents an implementation of block cipher.
It provides the capability to encrypt or decrypt individual blocks.
Methods
block_size
pub fn block_size(self): int
Returns the cipher's block size.
block_size
pub fn block_size(self): int
Returns the cipher's block size.
Returns the cipher's block size.
encrypt
pub fn encrypt(self, data: Bytes) throws InvalidLengthError
Encrypts the block.
encrypt
pub fn encrypt(self, data: Bytes) throws InvalidLengthError
Encrypts the block.
Encrypts the block.
decrypt
pub fn decrypt(self, data: Bytes) throws InvalidLengthError
Decrypts the block.
decrypt
pub fn decrypt(self, data: Bytes) throws InvalidLengthError
Decrypts the block.
Decrypts the block.