Find the last two bytes of the partial AES-128 CMAC key below (computed using the sample code
Fantastic news! We've Found the answer you've been seeking!
Question:
Find the last two bytes of the partial AES-128 CMAC key below (computed using the sample code found in https://cryptography.io/en/latest/hazmat/primitives/mac/cmac/ (Links to an external site.)). The full CMAC tag, full message, and partial key (missing the last two bytes) are as follows:
tag = b'sxafx12xdcxc6x16~xd0xcaIxf3ox9au0' #full
message = b"message to authenticate" #full
key = b'0123456789abcd' #missing the last two bytes
Submit your code to find the last two bytes of the key. The code should print the whole value of the key and also include it as a comment.
Posted Date: