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

Using secure DFU bootloader and Crypto in Application

Hello,

We are trying to use the Cryptocell as used in example nrf_crypto_aes_cbc_with_padding along with Secure DFU. However, when the application loads the crypto engine no longer works the Cryptocell seems to return only zero's. Closing and reopening the crypto engine causes a soft device error. Can you please advise on what might be causing this?

Thanks,

RJ

Parents
  • Hi RJ,

    We are trying to use the Cryptocell as used in example nrf_crypto_aes_cbc_with_padding along with Secure DFU.

    There should not be a problem combining CryptoCell and the SoftDevice (and that is done in the BLE examples that use LE Secure Connections), so this should work.

    However, when the application loads the crypto engine no longer works the Cryptocell seems to return only zero's.

    Can you explain in detail which function call you refer to and what (output data I assume) is only zero? Can you also show the code you use in this case and how you reproduce the issue? Please include the sdk_config.h as well so I see how you configured nRF Crypto. Are you using the CryptoCell library with or without interrupts?

    Closing and reopening the crypto engine causes a soft device error. Can you please advise on what might be causing this?

    Can you explain with reference to code how you close and open the crypto engine, and which SoftDevice error/assert you get.

    Einar

Reply
  • Hi RJ,

    We are trying to use the Cryptocell as used in example nrf_crypto_aes_cbc_with_padding along with Secure DFU.

    There should not be a problem combining CryptoCell and the SoftDevice (and that is done in the BLE examples that use LE Secure Connections), so this should work.

    However, when the application loads the crypto engine no longer works the Cryptocell seems to return only zero's.

    Can you explain in detail which function call you refer to and what (output data I assume) is only zero? Can you also show the code you use in this case and how you reproduce the issue? Please include the sdk_config.h as well so I see how you configured nRF Crypto. Are you using the CryptoCell library with or without interrupts?

    Closing and reopening the crypto engine causes a soft device error. Can you please advise on what might be causing this?

    Can you explain with reference to code how you close and open the crypto engine, and which SoftDevice error/assert you get.

    Einar

Children
No Data
Related