18 #ifndef MCUXCLHASH_TYPES_H_ 19 #define MCUXCLHASH_TYPES_H_ 78 #define MCUXCLHASH_STATUS_OK ((mcuxClHash_Status_t) 0xE1E1E1E1u ) 79 #define MCUXCLHASH_STATUS_ERROR ((mcuxClHash_Status_t) 0xE1E11E1Eu ) 80 #define MCUXCLHASH_STATUS_FAULT_ATTACK ((mcuxClHash_Status_t) 0xE1E1F0F0u ) 93 #define MCUXCLHASH_INIT 0x00000011u 94 #define MCUXCLHASH_UPDATE 0x00000022u 95 #define MCUXCLHASH_FINALIZE 0x00000088u 104 #define MCUXCLHASH_COUNTER_SIZE_SHA_256 8 105 #define MCUXCLHASH_COUNTER_SIZE_SHA_224 MCUXCLHASH_COUNTER_SIZE_SHA_256 106 #define MCUXCLHASH_COUNTER_SIZE_SHA_512 16 107 #define MCUXCLHASH_COUNTER_SIZE_SHA_384 MCUXCLHASH_COUNTER_SIZE_SHA_512 123 uint8_t unprocessed[128u];
136 uint32_t unprocessedLength;
137 uint32_t processedLength;
163 const uint8_t *
const in,
179 const uint8_t *
const in,
193 uint8_t *startAddress,
194 size_t expectedLength
uint32_t mcuxClHash_Status_t
Hash Status type.
Definition: mcuxClHash_Types.h:64
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition: mcuxClSession_Types.h:110
uint32_t rtfSize
Size of the Runtime Fingerprint used by the hash function; has to be set to zero when not supported.
Definition: mcuxClHash_Types.h:210
Definition: mcuxClHash_Types.h:147
uint64_t mcuxClHash_Status_Protected_t
Hash Protected Status type.
Definition: mcuxClHash_Types.h:56
uint32_t protection_token_skeleton
Protection token value for the used one-shot skeleton.
Definition: mcuxClHash_Types.h:211
mcuxClHash_AlgoEngine_t engine
Hash engine function.
Definition: mcuxClHash_Types.h:203
size_t hashSize
Size of the output of the hash algorithm.
Definition: mcuxClHash_Types.h:207
Type definitions for the mcuxClSession component.
Definition: mcuxClHash_Types.h:135
uint32_t protection_token_engine
Protection token value for the used engine.
Definition: mcuxClHash_Types.h:213
size_t blockSize
Size of the block used by the hash algorithm.
Definition: mcuxClHash_Types.h:206
size_t stateSize
Size of the state used by the hash algorithm.
Definition: mcuxClHash_Types.h:208
uint32_t counterSize
Size of the counter used by the hash algorithm.
Definition: mcuxClHash_Types.h:209
mcuxClHash_AlgoSkeleton_t streamingSkeleton
Streaming hash skeleton function.
Definition: mcuxClHash_Types.h:205
Definition: mcuxClHash_Types.h:121
mcuxClHash_AlgoSkeleton_t skeleton
One-shot hash skeleton function.
Definition: mcuxClHash_Types.h:204
Definition: mcuxClHash_Types.h:201
uint32_t protection_token_streaming_skeleton
Protection token value for the used streaming skeleton.
Definition: mcuxClHash_Types.h:212