CMac.fromCipher constructor
CMac.fromCipher(
- BlockCipher cipher
create a standard MAC based on a CBC block cipher (64 or 128 bit block). This will produce an authentication code the length of the block size of the cipher.
@param cipher the cipher to be used as the basis of the MAC generation.
Implementation
CMac.fromCipher(BlockCipher cipher) : this(cipher, cipher.blockSize * 8);