From 32c585db694ab3a685c616a652f91e09cfa5a333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Sun, 13 Apr 2014 19:57:49 +0200 Subject: [PATCH] rnda & rndb are 16 bytes long in 3K3DS and AES mode. --- libfreefare/freefare_internal.h | 2 +- libfreefare/mifare_desfire_key.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreefare/freefare_internal.h b/libfreefare/freefare_internal.h index e26c3cb..f4c9023 100644 --- a/libfreefare/freefare_internal.h +++ b/libfreefare/freefare_internal.h @@ -243,7 +243,7 @@ struct mifare_desfire_tag { uint32_t selected_application; }; -MifareDESFireKey mifare_desfire_session_key_new (uint8_t rnda[8], uint8_t rndb[8], MifareDESFireKey authentication_key); +MifareDESFireKey mifare_desfire_session_key_new (uint8_t rnda[], uint8_t rndb[], MifareDESFireKey authentication_key); const char *mifare_desfire_error_lookup (uint8_t error); struct mifare_ultralight_tag { diff --git a/libfreefare/mifare_desfire_key.c b/libfreefare/mifare_desfire_key.c index efa63c1..ebf18c9 100644 --- a/libfreefare/mifare_desfire_key.c +++ b/libfreefare/mifare_desfire_key.c @@ -158,7 +158,7 @@ mifare_desfire_key_set_version (MifareDESFireKey key, uint8_t version) } MifareDESFireKey -mifare_desfire_session_key_new (uint8_t rnda[8], uint8_t rndb[8], MifareDESFireKey authentication_key) +mifare_desfire_session_key_new (uint8_t rnda[], uint8_t rndb[], MifareDESFireKey authentication_key) { MifareDESFireKey key = NULL;