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.
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
Test the nrf_cc310_bl example application by performing the following steps:
When all tests are successfully executed, the following message appears:
================================= All tests passed! =================================