From 5ebea97ba2900b2670c6d07fe40b1010021bbe36 Mon Sep 17 00:00:00 2001 From: r3df0xx Date: Tue, 29 Mar 2022 15:44:02 +0300 Subject: [PATCH] Update subghz_keystore.c keystore debug --- lib/subghz/subghz_keystore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/subghz/subghz_keystore.c b/lib/subghz/subghz_keystore.c index d0efc6a07..55d781a6f 100644 --- a/lib/subghz/subghz_keystore.c +++ b/lib/subghz/subghz_keystore.c @@ -333,6 +333,7 @@ bool subghz_keystore_save(SubGhzKeystore* instance, const char* file_name, uint8 SubGhzKeyArray_t* subghz_keystore_get_data(SubGhzKeystore* instance) { furi_assert(instance); return &instance->data; + FURI_LOG_I(TAG, "array: \n", &instance->data); } bool subghz_keystore_raw_encrypted_save( @@ -586,6 +587,7 @@ bool subghz_keystore_raw_get_data(const char* file_name, size_t offset, uint8_t* break; } memcpy(data, (uint8_t*)decrypted_line + (offset - (offset / 16) * 16), len); + FURI_LOG_I(TAG, "decrypted line: %X", decrypted_line); } while(0); furi_hal_crypto_store_unload_key(SUBGHZ_KEYSTORE_FILE_ENCRYPTION_KEY_SLOT);