The micro_ecc backend provides functionality to use micro_ecc in nrf_crypto.
- Note
- All APIs in this backend are intended to be internal to nrf_crypto.
Configuration
See Configuring nrf_crypto frontend and backends for details on enabling this backend.
Available frontend API
See Cryptography library - nrf_crypto for information about which nrf_crypto APIs can use this backend.
Installing micro-ecc
The cryptography library expects to find the compiled micro-ecc library in
<InstallFolder>\external\micro-ecc\micro-ecc
.
To install micro-ecc, complete the following steps:
- Install version 4.9-2015-q3-update of the GCC compiler toolchain for ARM. You can use ARM's Launchpad to find the toolchain for your operating system.
-
Make sure that
makeis installed (see, for example, MinGW , GNU Make , or Xcode ). -
Clone the
micro-ecc GitHub repository
into
<InstallFolder>\external\micro-ecc\micro-ecc. -
Enter the subdirectory for the SoC and the toolchain that you are using to build your application:
-
InstallFolder \external\micro-ecc\nrf52_keil\armgcc -
InstallFolder \external\micro-ecc\nrf52_iar\armgcc -
InstallFolder \external\micro-ecc\nrf52_armgcc\armgcc
-
-
Run
maketo compile the micro-ecc library.
- Note
-
If you compile the micro-ecc library without using the provided Makefiles, make sure to use the default compilation options with -Os and optimization level 3. If you change the preprocessor macros (most importantly,
uECC_VLI_NATIVE_LITTLE_ENDIAN=1), the library might not work properly.