From 62031e640cadbccc2567eeb9770bc297f78f4fff Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 30 Mar 2021 09:34:17 +0200 Subject: [PATCH] swap arrays --- client/src/mifare/desfire_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/mifare/desfire_crypto.c b/client/src/mifare/desfire_crypto.c index 1f36bacac..83e27e7b6 100644 --- a/client/src/mifare/desfire_crypto.c +++ b/client/src/mifare/desfire_crypto.c @@ -870,7 +870,7 @@ void mifare_cypher_single_block(desfirekey_t key, uint8_t *data, uint8_t *ivect, mbedtls_aes_context actx; mbedtls_aes_init(&actx); mbedtls_aes_setkey_dec(&actx, key->data, 128); - mbedtls_aes_crypt_ecb(&actx, MBEDTLS_AES_DECRYPT, edata, data); + mbedtls_aes_crypt_ecb(&actx, MBEDTLS_AES_DECRYPT, data, edata); mbedtls_aes_free(&actx); break; }