some problems about AES CCM

1st problem:

There are some failed case when i run  \v2.9.1\modules\bsim_hw_models\nrf_hw_models\tests\zephyr_apps\54_aar_ccm_ecb\src\test_ccm.c

2nd problem:

If I reduce the amount of encrypted data in test_ccm_12b_encr_ble_255b_w_adata_nomac, the encryption process gets stuck.

Parents
  • Hi.

    1st problem:

    There are some failed case when i run  \v2.9.1\modules\bsim_hw_models\nrf_hw_models\tests\zephyr_apps\54_aar_ccm_ecb\src\test_ccm.c

    What command do you use to run this test?

    If I reduce the amount of encrypted data in test_ccm_12b_encr_ble_255b_w_adata_nomac, the encryption process gets stuck.

    What is your use-case for reducing this the data?

    Regards,
    Sigurd Hellesvik

  • What command do you use to run this test?

    I didn't use any commands, I just opened the \v2.9.1\modules\bsim_hw_models\nrf_hw_models\tests\zephyr_apps\54_aar_ccm_ecb and build it and flash it into nrf54l15dk, it automatically executed the test and printed out the log shown in the picture. In addition, for these failed cases, I found that the code comments indicated that the failure was expected.

    What is your use-case for reducing this the data?

    I am developing an ESB program capable of encryption, but it fails when encrypting data of varying lengths. Therefore, I found this example for reference, only to discover that it also fails when encrypting data of different lengths, as illustrated in the above figure. I commented out the first 10 bytes, and the encryption failed.

Reply
  • What command do you use to run this test?

    I didn't use any commands, I just opened the \v2.9.1\modules\bsim_hw_models\nrf_hw_models\tests\zephyr_apps\54_aar_ccm_ecb and build it and flash it into nrf54l15dk, it automatically executed the test and printed out the log shown in the picture. In addition, for these failed cases, I found that the code comments indicated that the failure was expected.

    What is your use-case for reducing this the data?

    I am developing an ESB program capable of encryption, but it fails when encrypting data of varying lengths. Therefore, I found this example for reference, only to discover that it also fails when encrypting data of different lengths, as illustrated in the above figure. I commented out the first 10 bytes, and the encryption failed.

Children
No Data
Related