On May 9, 8:58 pm, Leonardo Carreira <[email protected]> wrote: > Hi All, > > Actually, Crypto's pp CMAC can fill my need if the data is multiple > AES data block (16 bytes).. > So, what padding values that need to be used if the data is not > multiple 16 bytes?.. > > Please help me regarding this. > A CMAC is a CBC-MAC done right (no problems if the message is not a multiple of the underlying block size). Crypto++ has an example in its self test code - see ValidateCMAC in validate1.cpp (it will lead you into datatest.cpp). The wiki now has a sample at http://www.cryptopp.com/wiki/CMAC.
Jeff -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
