Commit graph

12 commits

Author SHA1 Message Date
Ave
ca04c44384 emrtd: Implement retail_mac and external authentication 2020-12-11 04:53:17 +03:00
Ave
6086ede2ed emrtd: split 3des encryption to its own func 2020-12-11 04:53:17 +03:00
Ave
69be5f8b25 emrtd: calculate S and e_ifd 2020-12-11 04:53:17 +03:00
Ave
a7478443b3 emrtd: calc kenc and kmac 2020-12-11 04:53:17 +03:00
Ave
b0fb5bfff6 emrtd: Reduce code repetition 2020-12-11 04:53:17 +03:00
Ave
49e4321382 emrtd: Get challenge
also some code "cleanup" which makes this whole shit less mem safe but
shh
2020-12-11 04:53:17 +03:00
Ave
9f6309cc23 emrtd: Add kseed calc, fix kmrz calc 2020-12-11 04:53:17 +03:00
Ave
1149c56696 emrtd: Add kmrz calc 2020-12-11 04:53:17 +03:00
Ave
84a1059d93 emrtd: Add BAC check 2020-12-11 04:53:17 +03:00
Ave
885f4b52fd emrtd: Rename select_aid to select_file 2020-12-11 04:53:17 +03:00
Ave
2c5ab21948 emtrd: Switch magic numbers over to named defines 2020-12-11 04:53:17 +03:00
Ave
bee075ad09 emrtd: Push initial code
Can only read EF_CardAccess currently, but has abstractions for
selecting AIDs and reading files, which was the Hard Part so far

Based heavily on mrpkey by rfidiot
2020-12-11 04:53:17 +03:00