New answers tagged

4 votes
Accepted

Message Authentication Code Padding Overview

CMAC is built from a block cipher, so at the lowest level it can only support messages whose length is an exact multiple of the blocklength. Thus, it must use a padding method to encode the input into ...
Mikero's user avatar
  • 13.1k
4 votes

Message Authentication Code Padding Overview

CBC-MAC is codified by ISO/IEC 9797-1:2011 (free preview at IEC), which has 4 padding methods. If $m$ is the data length in bits and $n$ the block size in bits: Padding Method 1: pad with $(-m)\bmod ...
fgrieu's user avatar
  • 140k

Top 50 recent answers are included