Dear friend,
How much RAM does ECB encryption consume?
Currently implemented using a third-party AES library (consumes 2.3k of RAM).
Is there a way to encrypt that consumes less RAM?
Dear friend,
How much RAM does ECB encryption consume?
Currently implemented using a third-party AES library (consumes 2.3k of RAM).
Is there a way to encrypt that consumes less RAM?
Hi Zero,
How much RAM does ECB encryption consume?
This will depend on which backend you are going to use. According to Cryptography library - nrf_crypto, at least two backends can be used for nRF52810: mbed TLS and micro-ecc.
Is there a way to encrypt that consumes less RAM?
Memory management in nrf_crypto introduces how to assign proper configuration for memory buffer usage optimization.
Best regards,
Charlie
This will depend on which backend you are going to use. According to Cryptography library - nrf_crypto, at least two backends can be used for nRF52810: mbed TLS and micro-ecc.
How much ram does it consume with mbed TLS?
Memory management in nrf_crypto introduces how to assign proper configuration for memory buffer usage optimization.
Seeing that the memory consumption of mbed TLS and micro-ecc is very high, how much is it? How much do you save after optimization?
Hi Zero,
Under Memory management in nrf_crypto table AES - Advanced Encryption Standard shows ECB memory cost is nrf_crypto_aes_context_t(292B)+nrf_crypto_aes_info_t(36B) under mbed TLS. If this is over your budget, you have to consider choosing chip with big memory size.
Best regards,
Charlie
Hi Charlie,
Does ECB have a simple example to test evaluation? Seeing that only the \examples\crypto\nrf_crypto\aes\aes_all_cli example uses ECB, this code is hard to estimate how much ram it consumes.
Best regards,
Zero
Hi Charlie,
Does ECB have a simple example to test evaluation? Seeing that only the \examples\crypto\nrf_crypto\aes\aes_all_cli example uses ECB, this code is hard to estimate how much ram it consumes.
Best regards,
Zero
No. the function nrf_cli_cmd_crypt_ecb in this example has basically demonstrated how to use ECB. Keep in mind that ECB is just one of several AES modes, so it is easy to adapt by following other samples like CBC, CTR modes.
Best regards,
Charlie
Hi Charlie,
Sorry, I made a mistake, I am currently using sdk14.2, I did not see a similar description of "Memory management in nrf_crypto" in sdk14.2. Based on sdk14.2, how much ram does it take to encrypt with micro-ecc backend?
Best regards,
Zero