From aca963ea8cab2cb7fe44dac8925c627e2891b227 Mon Sep 17 00:00:00 2001 From: David Lin Date: Sat, 29 Feb 2020 20:50:32 +0800 Subject: [PATCH] Fixed a bug when initalize array memset(decrypted_text, 0, sizeof(encrypted_text)); -> memset(decrypted_text, 0, sizeof(decrypted_text)); --- .../examples/crypto/nrf_crypto/aes/aes_all_cli/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/crypto/nrf_crypto/aes/aes_all_cli/main.c b/platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/crypto/nrf_crypto/aes/aes_all_cli/main.c index 88d2d9bb..a2f38a42 100644 --- a/platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/crypto/nrf_crypto/aes/aes_all_cli/main.c +++ b/platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/examples/crypto/nrf_crypto/aes/aes_all_cli/main.c @@ -230,7 +230,7 @@ static void nrf_cli_cmd_ccm(nrf_cli_t const * p_cli, size_t argc, char **argv) memset(mac, 0, sizeof(mac)); memset(nonce, 0, sizeof(nonce)); memset(encrypted_text, 0, sizeof(encrypted_text)); - memset(decrypted_text, 0, sizeof(encrypted_text)); + memset(decrypted_text, 0, sizeof(decrypted_text)); memset(&ccm_encr_ctx, 0, sizeof(ccm_encr_ctx)); memset(&ccm_decr_ctx, 0, sizeof(ccm_decr_ctx));