Skip to content

Commit

Permalink
[test] Add print messages
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Nasahl <[email protected]>
  • Loading branch information
nasahlpa committed Jan 17, 2025
1 parent 70ab93a commit 4575c00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sw/device/lib/testing/aes_testutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const uint32_t kEdnSeedMaterialReseed[kEdnSeedMaterialLen] = {
0xec2504be, 0xb00fb68c, 0xf37e0a7f, 0x88172eec, 0x4e4b5f58, 0xfec120c0};

status_t aes_testutils_masking_prng_zero_output_seed(void) {
LOG_INFO("Inside the aes_testutils_masking_prng_zero_output_seed function!");
const dif_csrng_t csrng = {
.base_addr = mmio_region_from_addr(TOP_EARLGREY_CSRNG_BASE_ADDR)};
const dif_edn_t edn0 = {
Expand Down Expand Up @@ -148,6 +149,7 @@ status_t aes_testutils_masking_prng_zero_output_seed(void) {
memcpy(edn0_params.reseed_cmd.seed_material.data, kEdnSeedMaterialReseed,
sizeof(kEdnSeedMaterialReseed));
TRY(dif_edn_set_auto_mode(&edn0, edn0_params));
LOG_INFO("Exit the aes_testutils_masking_prng_zero_output_seed function!");
return OK_STATUS();
}

Expand Down
7 changes: 5 additions & 2 deletions sw/device/tests/penetrationtests/firmware/sca/aes_sca.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,10 @@ static status_t trigger_aes_gcm(dif_aes_key_share_t key, dif_aes_iv_t iv,
AES_TESTUTILS_WAIT_FOR_STATUS(&aes, kDifAesStatusOutputValid, true,
kIbexAesGcmSleepCycles * 2);
TRY(dif_aes_read_output(&aes, tag));

LOG_INFO("before read");
uint32_t status_reg = mmio_region_read32(aes.base_addr, AES_CTRL_AUX_SHADOWED_REG_OFFSET);
LOG_INFO("CTRL_AUX_SHADOWED register = %x", status_reg);
LOG_INFO("after read");
return OK_STATUS();
}

Expand Down Expand Up @@ -1195,7 +1198,7 @@ status_t handle_aes_pentest_seed_lfsr(ujson_t *uj) {
} while (!idle);
}
#endif

LOG_INFO("At the end of disabling masks.");
return OK_STATUS();
}

Expand Down

0 comments on commit 4575c00

Please sign in to comment.