Contiki-NG
|
Driver for the cc2538 AES-ECB mode of the security core. More...
Files | |
file | ecb.c |
Implementation of the cc2538 AES-ECB driver. | |
file | ecb.h |
Header file for the cc2538 AES-ECB driver. | |
AES-ECB functions | |
uint8_t | ecb_crypt_start (uint8_t encrypt, uint8_t key_area, const void *mdata_in, void *mdata_out, uint16_t mdata_len, struct process *process) |
Starts an ECB crypto operation. More... | |
int8_t | ecb_crypt_check_status (void) |
Checks the status of the ECB crypto operation. More... | |
Driver for the cc2538 AES-ECB mode of the security core.
int8_t ecb_crypt_check_status | ( | void | ) |
Checks the status of the ECB crypto operation.
CRYPTO_PENDING
if operation still pending, CRYPTO_SUCCESS
if successful, or CRYPTO/AES/ECB error code ecb_crypt_start()
. Definition at line 58 of file ecb.c.
References aes_auth_crypt_check_status(), and aes_auth_crypt_get_result().
uint8_t ecb_crypt_start | ( | uint8_t | encrypt, |
uint8_t | key_area, | ||
const void * | mdata_in, | ||
void * | mdata_out, | ||
uint16_t | mdata_len, | ||
struct process * | process | ||
) |
Starts an ECB crypto operation.
encrypt | true to encrypt, or false to decrypt |
key_area | Area in Key RAM where the key is stored (0 to AES_KEY_AREAS - 1) |
mdata_in | Pointer to input message in SRAM |
mdata_out | Pointer to output message in SRAM (may be mdata_in ) |
mdata_len | Length of message in octets |
process | Process to be polled upon completion of the operation, or NULL |
CRYPTO_SUCCESS
if successful, or CRYPTO/AES/ECB error code