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: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Modules | |
CryptoCell CHACHA POLY specific errors | |
Functions | |
CIMPORT_C CRYSError_t | CRYS_CHACHA_POLY (CRYS_CHACHA_Nonce_t pNonce, CRYS_CHACHA_Key_t pKey, CRYS_CHACHA_EncryptMode_t encryptDecryptFlag, uint8_t *pAddData, size_t addDataSize, uint8_t *pDataIn, size_t dataInSize, uint8_t *pDataOut, CRYS_POLY_Mac_t macRes) |
This function is used to perform the CHACHA-POLY encryption and authentication operation. |
Function Documentation
CIMPORT_C CRYSError_t CRYS_CHACHA_POLY | ( | CRYS_CHACHA_Nonce_t | pNonce, |
CRYS_CHACHA_Key_t | pKey, | ||
CRYS_CHACHA_EncryptMode_t | encryptDecryptFlag, | ||
uint8_t * | pAddData, | ||
size_t | addDataSize, | ||
uint8_t * | pDataIn, | ||
size_t | dataInSize, | ||
uint8_t * | pDataOut, | ||
CRYS_POLY_Mac_t | macRes | ||
) |
This function is used to perform the CHACHA-POLY encryption and authentication operation.
- Returns:
- CRYS_OK on success.
- A non-zero value on failure as defined crys_chacha_poly_error.h.
- Parameters:
-
[in] pNonce A pointer to a buffer containing the nonce value. [in] pKey A pointer to the user's key buffer. [in] encryptDecryptFlag A flag specifying whether the CHACHA-POLY should perform an Encrypt or Decrypt operation. [in] pAddData A pointer to the buffer of the additional data to the POLY. The pointer does not need to be aligned. must not be null. [in] addDataSize The size of the input data. must not be 0. [in] pDataIn A pointer to the buffer of the input data to the CHACHA. The pointer does not need to be aligned. must not be null. [in] dataInSize The size of the input data. must not be 0. [out] pDataOut A pointer to the buffer of the output data from the CHACHA. must not be null. [in,out] macRes Pointer to the MAC result buffer.
Generated on Tue Jul 12 2022 13:55:21 by
