Mistake on this page?
Report an issue in GitHub or email us
Modules | Functions
CryptoCell CHACHA-POLY APIs

Modules

 CryptoCell CHACHA POLY specific errors
 

Functions

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. More...
 

Detailed Description

Function Documentation

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]pNonceA pointer to a buffer containing the nonce value.
[in]pKeyA pointer to the user's key buffer.
[in]encryptDecryptFlagA flag specifying whether the CHACHA-POLY should perform an Encrypt or Decrypt operation.
[in]pAddDataA pointer to the buffer of the additional data to the POLY. The pointer does not need to be aligned. must not be null.
[in]addDataSizeThe size of the input data. must not be 0.
[in]pDataInA pointer to the buffer of the input data to the CHACHA. The pointer does not need to be aligned. must not be null.
[in]dataInSizeThe size of the input data. must not be 0.
[out]pDataOutA pointer to the buffer of the output data from the CHACHA. must not be null.
[in,out]macResPointer to the MAC result buffer.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.