This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Do crypto AEAD functions from SDK 15 work with nRF51?

On the infocenter website we can read that ,,The nRF5 SDK v15.0.0 supports nRF52 Series devices''. I would like to use crypto code from SDK15 on nRF51. I am interested in using AEAD GCM/CCM. By ,,work' I would like to know if these algorithms are also accelerated in hardware on nRF51, so that encryption time is about 200 us?

Parents
  • Hi,

    I think with some effort you shall be able to port nrf_crypto library to nr51 series.

    With nrf_crypto library you can use:

    AEAD CCM:

      - CC310 backend: HW accelerated only with nrf52840 (the only uC with Cryptocell)

      - mbed TLS backend - SW implementation

    AEAD GCM: It has only SW backend - mbed TLS.

    Long story short: with nrf51 you can only use SW backends. HW acceleration is possible only for nrf52840.

    The easiest way will be to copy mbedtls library from SDK15 sdk\nrf5\external\mbedtls and port it to your code.

Reply
  • Hi,

    I think with some effort you shall be able to port nrf_crypto library to nr51 series.

    With nrf_crypto library you can use:

    AEAD CCM:

      - CC310 backend: HW accelerated only with nrf52840 (the only uC with Cryptocell)

      - mbed TLS backend - SW implementation

    AEAD GCM: It has only SW backend - mbed TLS.

    Long story short: with nrf51 you can only use SW backends. HW acceleration is possible only for nrf52840.

    The easiest way will be to copy mbedtls library from SDK15 sdk\nrf5\external\mbedtls and port it to your code.

Children
Related