nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ mpsl_ecb_block_encrypt_extended()

void mpsl_ecb_block_encrypt_extended ( const uint8_t  key[(16)],
const uint8_t  cleartext[(16)],
uint8_t  ciphertext[((16))],
uint32_t  flags 
)

Encrypts a block according to the specified parameters.

Note
This function will only return once the ciphertext has been generated.
Parameters
[in]keyEncryption key
[in]cleartextPlaintext to be encrypted
[out]ciphertextEncrypted text
[in]flagsAny combination of the following flags:
  • MPSL_ECB_INPUT_LE The key and cleartext are in little-endian format.
  • MPSL_ECB_OUTPUT_LE The ciphertext will be returned in little-endian format.
  • MPSL_ECB_CLEARTEXT_IN_LOCAL_RAM Unless this is set, the cleartext will be copied to RAM since the ECB hardware cannot access other memory locations.