diff --git a/sw/device/tests/keymgr_dpe_key_derivation_test.c b/sw/device/tests/keymgr_dpe_key_derivation_test.c index 91656da716faf0..a44977235ef0bd 100644 --- a/sw/device/tests/keymgr_dpe_key_derivation_test.c +++ b/sw/device/tests/keymgr_dpe_key_derivation_test.c @@ -95,8 +95,8 @@ bool test_main(void) { CHECK_STATUS_OK(keymgr_dpe_testutils_generate(&keymgr_dpe, &genparams, &key)); LOG_INFO("KeymgrDpe generated key:"); - for (uint32_t i = 0; i < 2; i++) { - for (uint32_t j = 0; j < 8; j++) { + for (size_t i = 0; i < ARRAYSIZE(key.value); ++i) { + for (size_t j = 0; j < ARRAYSIZE(key.value[0]); ++j { LOG_INFO("%x ", key.value[i][j]); } }