nRF5 SDK v17.1.0
CryptoCell nrf_cc310_bl Library Integration Tests
This information applies to the nRF52840 SoC only.

The nrf_cc310_bl library uses the CryptoCell peripheral on the nRF52840 SoC (see nRF52840 Product Specification). The library provides reduced cryptographic functionality for the bootloader context where small footprint is very important.

Note
The nrf_cc310_bl library is not portable. Use the Cryptography library - nrf_crypto frontend and backend system to ensure that the code works on devices other than the nRF52840 SoC.

The example application includes several tests that show how to use nrf_cc310_bl and how to verify its behavior:

Test Standard Description
SHA-256 RFC 6979 A.1.2 Shows how to use the SHA-256.
ECDSA secp256r1 (positive test) RFC 6979 A.2.5 Shows how to verify with ECDSA secp256r1.
ECDSA secp256r1 (wrong signature) RFC 6979 A.2.5 Tests if verification fails with a wrong signature provided.
ECDSA secp256r1 (wrong hash) RFC 6979 A.2.5 Tests if verification fails with a wrong hash of the message provided.
ECDSA secp224r1 (positive test) RFC 6979 A.2.4 Shows how to verify with ECDSA secp224r1.
ECDSA secp224r1 (wrong signature) RFC 6979 A.2.4 Tests if verification fails with a wrong signature provided.
ECDSA secp224r1 (wrong hash) RFC 6979 A.2.4 Tests if verification fails with a wrong hash of the message provided.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\crypto\nrf_cc310_bl

Testing

Test the nrf_cc310_bl example application by performing the following steps:

  1. Compile and program the application.
  2. Use RTT Viewer to view the log messages for each integration test. The messages describe the success or failure of each stage of the test in a human-readable format.

When all tests are successfully executed, the following message appears:

    =================================
    All tests passed!
    =================================

Documentation feedback | Developer Zone | Subscribe | Updated