Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

nrf_ecb.c File Reference

nrf_ecb.c File Reference

Implementation of AES ECB driver. More...

Go to the source code of this file.

Functions

bool nrf_ecb_init (void)
 Initialize and power on the ECB peripheral.
bool nrf_ecb_crypt (uint8_t *dest_buf, const uint8_t *src_buf)
 Encrypt/decrypt 16-byte data using current key.
void nrf_ecb_set_key (const uint8_t *key)
 Set the key to be used for encryption/decryption.

Variables

static uint8_t ecb_data [48]
 ECB data structure for RNG peripheral to access.
static uint8_t * ecb_key
 Key: Starts at ecb_data.
static uint8_t * ecb_cleartext
 Cleartext: Starts at ecb_data + 16 bytes.
static uint8_t * ecb_ciphertext
 Ciphertext: Starts at ecb_data + 32 bytes.

Detailed Description

Implementation of AES ECB driver.

Definition in file nrf_ecb.c.


Variable Documentation

uint8_t* ecb_ciphertext [static]

Ciphertext: Starts at ecb_data + 32 bytes.

Definition at line 31 of file nrf_ecb.c.

uint8_t* ecb_cleartext [static]

Cleartext: Starts at ecb_data + 16 bytes.

Definition at line 30 of file nrf_ecb.c.

uint8_t ecb_data[48] [static]

ECB data structure for RNG peripheral to access.

Definition at line 28 of file nrf_ecb.c.

uint8_t* ecb_key [static]

Key: Starts at ecb_data.

Definition at line 29 of file nrf_ecb.c.