takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

crys_chacha.h File Reference

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

Go to the source code of this file.

Data Structures

struct  CRYS_CHACHAUserContext_t

Typedefs

typedef uint8_t CRYS_CHACHA_Nonce_t [CRYS_CHACHA_NONCE_MAX_SIZE_IN_BYTES]
typedef uint8_t CRYS_CHACHA_Key_t [CRYS_CHACHA_KEY_MAX_SIZE_IN_BYTES]
typedef struct
CRYS_CHACHAUserContext_t 
CRYS_CHACHAUserContext_t

Enumerations

enum  CRYS_CHACHA_EncryptMode_t { CRYS_CHACHA_Encrypt = 0, CRYS_CHACHA_Decrypt = 1, CRYS_CHACHA_EncryptNumOfOptions, CRYS_CHACHA_EncryptModeLast = 0x7FFFFFFF }
enum  CRYS_CHACHA_NonceSize_t { CRYS_CHACHA_Nonce64BitSize = 0, CRYS_CHACHA_Nonce96BitSize = 1, CRYS_CHACHA_NonceSizeNumOfOptions, CRYS_CHACHA_NonceSizeLast = 0x7FFFFFFF }

Functions

CIMPORT_C 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.
CIMPORT_C 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.
CIMPORT_C 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.
CIMPORT_C CRYSError_t CRYS_CHACHA_Free (CRYS_CHACHAUserContext_t *pContextID)
 This function is used to free the context of CHACHA operations.
CIMPORT_C 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.

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.