Contiki-NG
Files | Functions

AES-128 driver for the CC26x0/CC13x0 SoC. More...

Files

file  cc26xx-aes.c
 Implementation of the AES driver for the CC26x0/CC13x0 SoC.
 
file  cc26xx-aes.h
 Header file of the AES-128 driver for the CC26xx SoC.
 

Functions

void cc26xx_aes_set_key (const uint8_t *key)
 Set a key to use in subsequent encryption & decryption operations. More...
 
void cc26xx_aes_encrypt (uint8_t *plaintext_and_result)
 Encrypt a message using the SoC AES-128 hardware implementation. More...
 
void cc26xx_aes_decrypt (uint8_t *cyphertext_and_result)
 Decrypt a message using the SoC AES-128 hardware implementation. More...
 

Detailed Description

AES-128 driver for the CC26x0/CC13x0 SoC.

Function Documentation

◆ cc26xx_aes_decrypt()

void cc26xx_aes_decrypt ( uint8_t *  cyphertext_and_result)

Decrypt a message using the SoC AES-128 hardware implementation.

Parameters
cyphertext_and_resultIn: message to decrypt, out: the decrypted message.

The size of the message must be AES_128_BLOCK_SIZE. The key to use in the decryption must be set before calling this function.

Definition at line 117 of file cc26xx-aes.c.

◆ cc26xx_aes_encrypt()

void cc26xx_aes_encrypt ( uint8_t *  plaintext_and_result)

Encrypt a message using the SoC AES-128 hardware implementation.

Parameters
plaintext_and_resultIn: message to encrypt, out: the encrypted message.

The size of the message must be AES_128_BLOCK_SIZE. The key to use in the encryption must be set before calling this function.

Definition at line 111 of file cc26xx-aes.c.

◆ cc26xx_aes_set_key()

void cc26xx_aes_set_key ( const uint8_t *  key)

Set a key to use in subsequent encryption & decryption operations.

Parameters
keyThe key to use

The size of the key must be AES_128_KEY_LENGTH.

Definition at line 50 of file cc26xx-aes.c.