~monadnock/nrf51-cryptolib

AES128-EAX and AES128-CTR implementations for the NRF5x AES128-ECB peripheral
Adds cached associated data version of eax for when AD doesn't change
Fixes compiler warning
Removes division/modulo reduces memset

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~monadnock/nrf51-cryptolib
read/write
git@git.sr.ht:~monadnock/nrf51-cryptolib

You can also use your local clone with git send-email.

Cryptography Library for nRF51

  • Uses AES-ECB hardware peripheral
  • Includes target test app that runs the EAX test vectors
  • Includes host test app that verifies the test vectors from NIST 800-38B, EAX papes, NIST 800-38A F5.1 (requires OpenSSL)

Usage

  1. Edit Makefile, special note to edit the path to the NRF-SDK (tested against SDK 10.0)

  2. Edit main.c:

 #define SUCCESS_LED 10
 #define ERROR_LED 12
 #define LED_ACTIVE LOW
  1. make:

    Output files in _build directory. Program to nRF51 dev. board to run tests on target.

  2. make test:

    Fakes ECB peripheral using openssl, then runs tests on host.