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

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

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

Go to the source code of this file.

Data Structures

struct  CRYS_HASHUserContext_t
 

Macros

#define CRYS_HASH_RESULT_SIZE_IN_WORDS   16
 
#define CRYS_HASH_MD5_DIGEST_SIZE_IN_BYTES   16
 
#define CRYS_HASH_MD5_DIGEST_SIZE_IN_WORDS   4
 
#define CRYS_HASH_SHA1_DIGEST_SIZE_IN_BYTES   20
 
#define CRYS_HASH_SHA1_DIGEST_SIZE_IN_WORDS   5
 
#define CRYS_HASH_SHA224_DIGEST_SIZE_IN_WORDS   7
 
#define CRYS_HASH_SHA256_DIGEST_SIZE_IN_WORDS   8
 
#define CRYS_HASH_SHA384_DIGEST_SIZE_IN_WORDS   12
 
#define CRYS_HASH_SHA512_DIGEST_SIZE_IN_WORDS   16
 
#define CRYS_HASH_SHA224_DIGEST_SIZE_IN_BYTES   28
 
#define CRYS_HASH_SHA256_DIGEST_SIZE_IN_BYTES   32
 
#define CRYS_HASH_SHA384_DIGEST_SIZE_IN_BYTES   48
 
#define CRYS_HASH_SHA512_DIGEST_SIZE_IN_BYTES   64
 
#define CRYS_HASH_BLOCK_SIZE_IN_WORDS   16
 
#define CRYS_HASH_BLOCK_SIZE_IN_BYTES   64
 
#define CRYS_HASH_SHA512_BLOCK_SIZE_IN_WORDS   32
 
#define CRYS_HASH_SHA512_BLOCK_SIZE_IN_BYTES   128
 
#define CRYS_HASH_UPDATE_DATA_MAX_SIZE_IN_BYTES   (1 << 29)
 

Typedefs

typedef uint32_t CRYS_HASH_Result_t[16]
 
typedef struct CRYS_HASHUserContext_t CRYS_HASHUserContext_t
 

Enumerations

Functions

CRYSError_t CRYS_HASH_Init (CRYS_HASHUserContext_t *ContextID_ptr, CRYS_HASH_OperationMode_t OperationMode)
 This function initializes the HASH machine and the HASH Context. More...
 
CRYSError_t CRYS_HASH_Update (CRYS_HASHUserContext_t *ContextID_ptr, uint8_t *DataIn_ptr, size_t DataInSize)
 This function processes a block of data to be HASHed. More...
 
CRYSError_t CRYS_HASH_Finish (CRYS_HASHUserContext_t *ContextID_ptr, CRYS_HASH_Result_t HashResultBuff)
 This function finalizes the hashing process of data block. More...
 
CRYSError_t CRYS_HASH_Free (CRYS_HASHUserContext_t *ContextID_ptr)
 This function is a utility function that frees the context if the operation has failed. More...
 
CRYSError_t CRYS_HASH (CRYS_HASH_OperationMode_t OperationMode, uint8_t *DataIn_ptr, size_t DataSize, CRYS_HASH_Result_t HashResultBuff)
 This function processes a single buffer of data. More...
 

Detailed Description

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

Definition in file crys_hash.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.