1
0
Fork 0
CTR and EAX modes built on nrf51 AES peripheral.
Go to file
Shawn Nock 1e8ad78391 Removes unneeded includes 2021-02-08 11:46:31 -05:00
scripts
template
tests
.gitignore
CMakeLists.txt Removes unneeded includes 2021-02-08 11:46:31 -05:00
LICENSE
Makefile Removes division/modulo reduces memset 2017-08-02 16:20:06 -04:00
README.md
aes.c Fixes for SD and modern NRF SDK 2021-02-06 16:00:57 -05:00
aes.h
block.c
block.h
ckdf.c
ckdf.h
cmac.c Fixes compiler warning 2017-08-02 16:24:03 -04:00
cmac.h
ctr.c Removes division/modulo reduces memset 2017-08-02 16:20:06 -04:00
ctr.h
eax.c Adds cached associated data version of eax for when AD doesn't change 2017-08-03 15:54:07 -04:00
eax.h Adds cached associated data version of eax for when AD doesn't change 2017-08-03 15:54:07 -04:00
main.c
openocd.cfg
rng.c
rng.h

README.md

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.