Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
AES ECB encryption
Driver for the AES Electronic Code Book (ECB) peripheral. More...
Functions | |
| bool | nrf_ecb_init (void) |
| Function for initializing and powering on the ECB peripheral. | |
| bool | nrf_ecb_crypt (uint8_t *dst, const uint8_t *src) |
| 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. | |
Detailed Description
Driver for the AES Electronic Code Book (ECB) peripheral.
To encrypt and decrypt data, the peripheral must first be powered on using nrf_ecb_init. Next, the key must be set using nrf_ecb_set_key.
Function Documentation
| bool nrf_ecb_crypt | ( | uint8_t * | dst, |
| const uint8_t * | src | ||
| ) |
Function for encrypting and decrypting 16-byte data using current key.
This function avoids unnecessary copying of data if the parameters point to the correct locations in the ECB data structure.
- Parameters:
-
dst Result of encryption/decryption. 16 bytes will be written. src Source with 16-byte data to be encrypted/decrypted.
- Return values:
-
true If the encryption operation completed. false If the encryption operation did not complete.
| bool nrf_ecb_init | ( | void | ) |
Generated on Tue Jul 12 2022 19:52:04 by
1.7.2
