Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iv: Initialization Vector used for ctr.
- key: Key used to encrypt the generated sha-1.
- data: Data for which the MAC need to be generated.
- MAC: Generated MAC of the data.
- iv_used: used_iv.
- data:used data.
- if (newMAC == oldMac)
- authentication_passed!
- else
- failed!
- MAC.
- used_iv.
- data.
- key
- iv to be used for generating MAC of data.
- data1
- MAC, data1, used_iv1
- data1
- MAC2, data1, used_iv2
Add Comment
Please, Sign In to add comment