]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/desfire_crypto.c
ADD: Marshmellows fixes for "lf t55xx" and "lf cmdread" ref: https://github.com...
[proxmark3-svn] / armsrc / desfire_crypto.c
index acce980f3b768e3fe48f4f24ef4fd1e416ccd44e..18ed67f65393434952bfdd59914f273a1e288bf4 100644 (file)
@@ -580,7 +580,7 @@ void mifare_cypher_single_block (desfirekey_t key, uint8_t *data, uint8_t *ivect
                        {
                                AesCtx ctx;
                                AesCtxIni(&ctx, ivect, key->data, KEY128,CBC); 
                        {
                                AesCtx ctx;
                                AesCtxIni(&ctx, ivect, key->data, KEY128,CBC); 
-                               AesEncrypt(&ctx, data, edata, sizeof(data) );
+                               AesEncrypt(&ctx, data, edata, sizeof(edata) );
                                break;
                        }
                        case MCO_DECYPHER:
                                break;
                        }
                        case MCO_DECYPHER:
Impressum, Datenschutz