Contiki-NG
|
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. | |
void | cc26xx_aes_encrypt (uint8_t *plaintext_and_result) |
Encrypt a message using the SoC AES-128 hardware implementation. | |
void | cc26xx_aes_decrypt (uint8_t *cyphertext_and_result) |
Decrypt a message using the SoC AES-128 hardware implementation. | |
AES-128 driver for the CC26x0/CC13x0 SoC
void cc26xx_aes_decrypt | ( | uint8_t * | cyphertext_and_result | ) |
Decrypt a message using the SoC AES-128 hardware implementation.
cyphertext_and_result | In: 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.
void cc26xx_aes_encrypt | ( | uint8_t * | plaintext_and_result | ) |
Encrypt a message using the SoC AES-128 hardware implementation.
plaintext_and_result | In: 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.
void cc26xx_aes_set_key | ( | const uint8_t * | key | ) |
Set a key to use in subsequent encryption & decryption operations.
key | The key to use |
The size of the key must be AES_128_KEY_LENGTH.
Definition at line 50 of file cc26xx-aes.c.