Microbit as a BLE gamepad

Dependents:   nRF51822

Fork of nrf51-sdk by Lancaster University

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)
 Function for initializing and powering on the ECB peripheral.
bool nrf_ecb_crypt (uint8_t *dest_buf, const uint8_t *src_buf)
 Function for encrypting and decrypting 16-byte data using current key.
void nrf_ecb_set_key (const uint8_t *key)
 Function for setting the key to be used for encryption and 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 50 of file nrf_ecb.c.

uint8_t* ecb_cleartext [static]

Cleartext: Starts at ecb_data + 16 bytes.

Definition at line 49 of file nrf_ecb.c.

uint8_t ecb_data[48] [static]

ECB data structure for RNG peripheral to access.

Definition at line 47 of file nrf_ecb.c.

uint8_t* ecb_key [static]

Key: Starts at ecb_data.

Definition at line 48 of file nrf_ecb.c.