Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Macros | Typedefs | Enumerations | Functions
crys_chacha.h File Reference

This file contains all of the enums and definitions that are used for the CRYS CHACHA APIs, as well as the APIs themselves. More...

#include "ssi_pal_types.h"
#include "crys_error.h"

Go to the source code of this file.

Data Structures

struct  CRYS_CHACHAUserContext_t
 

Macros

#define CRYS_CHACHA_USER_CTX_SIZE_IN_WORDS   17
 
#define CRYS_CHACHA_BLOCK_SIZE_IN_WORDS   16
 
#define CRYS_CHACHA_BLOCK_SIZE_IN_BYTES   (CRYS_CHACHA_BLOCK_SIZE_IN_WORDS * sizeof(uint32_t))
 
#define CRYS_CHACHA_NONCE_MAX_SIZE_IN_WORDS   3
 
#define CRYS_CHACHA_NONCE_MAX_SIZE_IN_BYTES   (CRYS_CHACHA_NONCE_MAX_SIZE_IN_WORDS * sizeof(uint32_t))
 
#define CRYS_CHACHA_KEY_MAX_SIZE_IN_WORDS   8
 
#define CRYS_CHACHA_KEY_MAX_SIZE_IN_BYTES   (CRYS_CHACHA_KEY_MAX_SIZE_IN_WORDS * sizeof(uint32_t))
 

Typedefs

typedef uint8_t CRYS_CHACHA_Nonce_t[(3 *sizeof(uint32_t))]
 
typedef uint8_t CRYS_CHACHA_Key_t[(8 *sizeof(uint32_t))]
 
typedef struct CRYS_CHACHAUserContext_t CRYS_CHACHAUserContext_t
 

Enumerations

Functions

CRYSError_t CRYS_CHACHA_Init (CRYS_CHACHAUserContext_t *pContextID, CRYS_CHACHA_Nonce_t pNonce, CRYS_CHACHA_NonceSize_t nonceSize, CRYS_CHACHA_Key_t pKey, uint32_t initialCounter, CRYS_CHACHA_EncryptMode_t EncryptDecryptFlag)
 This function is used to initialize the context for CHACHA operations. More...
 
CRYSError_t CRYS_CHACHA_Block (CRYS_CHACHAUserContext_t *pContextID, uint8_t *pDataIn, uint32_t dataInSize, uint8_t *pDataOut)
 This function is used to process aligned blocks of CHACHA. The data in size should be a multiple of chacha block size. More...
 
CRYSError_t CRYS_CHACHA_Finish (CRYS_CHACHAUserContext_t *pContextID, uint8_t *pDataIn, uint32_t dataInSize, uint8_t *pDataOut)
 This function is used to process the remaining data of CHACHA. The data in size should be smaller than chacha block size. More...
 
CRYSError_t CRYS_CHACHA_Free (CRYS_CHACHAUserContext_t *pContextID)
 This function is used to free the context of CHACHA operations. More...
 
CRYSError_t CRYS_CHACHA (CRYS_CHACHA_Nonce_t pNonce, CRYS_CHACHA_NonceSize_t nonceSize, CRYS_CHACHA_Key_t pKey, uint32_t initialCounter, CRYS_CHACHA_EncryptMode_t encryptDecryptFlag, uint8_t *pDataIn, uint32_t dataInSize, uint8_t *pDataOut)
 This function is used to perform the CHACHA operation in one integrated process. More...
 

Detailed Description

This file contains all of the enums and definitions that are used for the CRYS CHACHA APIs, as well as the APIs themselves.

Definition in file crys_chacha.h.

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.