Encrypts a block according to the specified parameters.
- Note
- This function will only return once the ciphertext has been generated.
- Parameters
-
| [in] | key | Encryption key |
| [in] | cleartext | Plaintext to be encrypted |
| [out] | ciphertext | Encrypted text |
| [in] | flags | Any 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.
|