2016-06-07 14:16:30 -04:00
|
|
|
# Cryptography Library for nRF51
|
2016-06-01 15:07:50 -04:00
|
|
|
|
|
|
|
- Uses AES-ECB hardware peripheral
|
2016-06-07 14:16:30 -04:00
|
|
|
- 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)
|
2016-06-01 15:07:50 -04:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
1. Edit `Makefile`, special note to edit the path to the NRF-SDK
|
|
|
|
(tested against SDK 10.0)
|
|
|
|
|
|
|
|
2. Edit main.c:
|
|
|
|
|
2016-06-07 14:16:30 -04:00
|
|
|
> #define SUCCESS_LED 10
|
|
|
|
> #define ERROR_LED 12
|
|
|
|
> #define LED_ACTIVE LOW
|
2016-06-01 15:07:50 -04:00
|
|
|
|
|
|
|
3. `make`:
|
|
|
|
|
|
|
|
Output files in `_build` directory. Program to nRF51 dev. board to
|
|
|
|
run tests on target.
|
|
|
|
|
|
|
|
4. `make test`:
|
|
|
|
|
2016-06-07 14:16:30 -04:00
|
|
|
Fakes ECB peripheral using openssl, then runs tests on host.
|