CBCBlockCipherMac.fromCipherAndPadding constructor
CBCBlockCipherMac.fromCipherAndPadding(
- BlockCipher cipher,
- Padding? padding
create a standard MAC based on a CBC block cipher. This will produce an authentication code half the length of the block size of the cipher.
cipher
the cipher to be used as the basis of the MAC generation.padding
the padding to be used to complete the last block.
Implementation
CBCBlockCipherMac.fromCipherAndPadding(BlockCipher cipher, Padding? padding)
: this(cipher, (cipher.blockSize * 8) ~/ 2, padding);