On May 9, 3:53 am, Leonardo Carreira <[email protected]> wrote: > Hi Masters, > > Actually in Cryptopp5.6.1 there's a class to handle CMAC calculation.. > But, i found a problem when use it with IV initialization.. > I've already tried to initialize the IV, but it seems didn't work.. :( > Could you help me to give me simple snippet code to handle CMAC > AES-128 calculation, specify the IV and random byte input data? > And can we get K0, K1 and K2 of our CMAC Key (when CMAC calculation > time)? > > Actually, my classmate have already done this.. > But i want to create my own application which does the same.. > > Here's the output of my classmate's tool : (CMAC AES-128 CBC) > > * 1st step > IV = 00000000000000000000000000000000 > Key = 00000000000000000000000000000000 > Input = 25 > CMAC Result = F60AA29D615BC9C4C0A7C8A08D963DEF > ======================================================= > * 2nd step > IV = F60AA29D615BC9C4C0A7C8A08D963DEF > Key = 00000000000000000000000000000000 > Input = 25 > CMAC Result = 1368BD293F9DC7DF8019BF0A90E7A853 > ======================================================= > * 3rd step > IV = F60AA29D615BC9C4C0A7C8A08D963DEF > Key = 00000000000000000000000000000000 > Input = 25 > CMAC Result = FBE134EEB0F9A5A9736E0C6DB4CFF2EB > > How to achieve this using CMAC Cryptopp? CMACs do not use an external IV.
-- 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.
