daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 6th, 2013 301 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mifare desfire aes authentication flow:
  2. -> 90 5A 00 00 03 10 10 10 00 (select app, appId 10 10 10)
  3. <- 91 00 (ok)
  4. -> 90 AA 00 00 01 00 00 (request for AES auth)
  5. <- 2C 0B 9F 68 69 77 0C 05 AF 0E 40 6C 5E 90 F6 BE 91 AF (challenge from card)
  6.  
  7. //computation_start
  8. 1. 'generate' randomA
  9. randomA = 01 02 03 04 05 06 07 08 09 00 0A 0B 0C 0D 0E 0F
  10. 2. trim challenge to receive randomB
  11. randomB = 2C 0B 9F 68 69 77 0C 05 AF 0E 40 6C 5E 90 F6 BE
  12. 3. left shift randomB
  13. randomB' = 0B 9F 68 69 77 0C 05 AF 0E 40 6C 5E 90 F6 BE 2C
  14. 4. randomA+ranomBb' = 01 02 03 04 05 06 07 08 09 00 0A 0B 0C 0D 0E 0F 0B 9F 68 69 77 0C 05 AF 0E 40 6C 5E 90 F6 BE 2C
  15. 5. encrypt randomA+ranomBb' with 16byte 0x00 IV and given 16byte KEY
  16. enrypted = CB BB D6 90 96 61 FB AB 03 26 77 B6 9B C7 DA B0 89 E1 BE F7 A7 2A 77 01 31 89 D1 75 A6 A5 C2 55
  17. //computation_end
  18.  
  19. -> 90 AF 00 00 20 CB BB D6 90 96 61 FB AB 03 26 77 B6 9B C7 DA B0 89 E1 BE F7 A7 2A 77 01 31 89 D1 75 A6 A5 C2 55 00
  20. <- 91AE (auth error)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top