Guest User

Untitled

a guest
Dec 12th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. iv: Initialization Vector used for ctr.
  2. key: Key used to encrypt the generated sha-1.
  3. data: Data for which the MAC need to be generated.
  4.  
  5. MAC: Generated MAC of the data.
  6. iv_used: used_iv.
  7. data:used data.
  8.  
  9. if (newMAC == oldMac)
  10. authentication_passed!
  11. else
  12. failed!
  13.  
  14. MAC.
  15. used_iv.
  16. data.
  17.  
  18. key
  19. iv to be used for generating MAC of data.
  20.  
  21. data1
  22.  
  23. MAC, data1, used_iv1
  24.  
  25. data1
  26.  
  27. MAC2, data1, used_iv2
Add Comment
Please, Sign In to add comment