diff options
author | Eric Betts <bettse@fastmail.fm> | 2022-07-05 18:28:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 18:28:27 +0300 |
commit | 8af2198684e92343fdd9bb6c8de2f95efc9d2d05 (patch) | |
tree | 4f6e8aaac160fcbf059ce7b4f8eee62c987f6d33 /lib | |
parent | 34d97ebb4a32a54270cdf968edf2313b14377de1 (diff) |
Iclass UI (#1366)
* Move structs to header
* roll mbedtls into loclass
* Picopass with scene for reading card
* Picopass: fix memory leak
* Lib: return mbedtls back
* Picopass: rename symbols to match naming guide
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/loclass/optimized_ikeys.c | 2 | ||||
-rw-r--r-- | lib/loclass/optimized_ikeys.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/loclass/optimized_ikeys.c b/lib/loclass/optimized_ikeys.c index ec414f1a..8e093feb 100644 --- a/lib/loclass/optimized_ikeys.c +++ b/lib/loclass/optimized_ikeys.c @@ -304,7 +304,7 @@ void hash0(uint64_t c, uint8_t k[8]) { * @param key * @param div_key */ -void diversifyKey(uint8_t *csn, uint8_t *key, uint8_t *div_key) { +void diversifyKey(uint8_t *csn, const uint8_t *key, uint8_t *div_key) { // Prepare the DES key mbedtls_des_setkey_enc(&ctx_enc, key); diff --git a/lib/loclass/optimized_ikeys.h b/lib/loclass/optimized_ikeys.h index fd990cac..e366bb6e 100644 --- a/lib/loclass/optimized_ikeys.h +++ b/lib/loclass/optimized_ikeys.h @@ -56,7 +56,7 @@ void hash0(uint64_t c, uint8_t k[8]); * @param div_key */ -void diversifyKey(uint8_t *csn, uint8_t *key, uint8_t *div_key); +void diversifyKey(uint8_t *csn, const uint8_t *key, uint8_t *div_key); /** * @brief Permutes a key from standard NIST format to Iclass specific format * @param key |