X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/02d352fea75385d80b49a7ab8703692ae307f073..76a608af8e342b50718cfd0e53c0fa932304dbd9:/armsrc/desfire_key.c diff --git a/armsrc/desfire_key.c b/armsrc/desfire_key.c index b3aa14e9..800ff6da 100644 --- a/armsrc/desfire_key.c +++ b/armsrc/desfire_key.c @@ -16,7 +16,7 @@ * * $Id$ */ -#include + #include "desfire_key.h" static inline void update_key_schedules (desfirekey_t key); @@ -60,6 +60,7 @@ void Desfire_3des_key_new_with_version (const uint8_t value[16], desfirekey_t ke if ( key != NULL ){ key->type = T_3DES; memcpy (key->data, value, 16); + memcpy (key->data + 16, value, 8); update_key_schedules (key); } }