MCUX CLNS
MCUX Crypto Library Normal Secure
hash_sha384_one_block.c File Reference

Example of SHA2-384 hashing using the CSSv2 (CLNS component mcuxClCss) More...

#include <mcuxClCss.h>
#include <mcuxCsslFlowProtection.h>
#include <stdbool.h>

Functions

bool hash_sha384_one_block (void)
 Performs SHA2-384 hashing using mcuxClCss functions. More...
 

Variables

static uint8_t const sha384_padded_input [MCUXCLCSS_HASH_BLOCK_SIZE_SHA_384]
 Data input for SHA2-384 hashing. More...
 
static uint8_t sha384_reference_digest [MCUXCLCSS_HASH_OUTPUT_SIZE_SHA_384]
 Expected hash value. More...
 
static uint8_t sha2_384_digest [MCUXCLCSS_HASH_STATE_SIZE_SHA_384]
 Destination buffer to receive the hash output of the SHA2-384 hashing. More...
 

Detailed Description

Example of SHA2-384 hashing using the CSSv2 (CLNS component mcuxClCss)

Function Documentation

◆ hash_sha384_one_block()

bool hash_sha384_one_block ( void  )

Performs SHA2-384 hashing using mcuxClCss functions.

Return values
trueThe example code completed successfully
falseThe example code failed
Examples
hash_sha384_one_block.c.

Variable Documentation

◆ sha384_padded_input

uint8_t const sha384_padded_input[MCUXCLCSS_HASH_BLOCK_SIZE_SHA_384]
static

Data input for SHA2-384 hashing.

Examples
hash_sha384_one_block.c.

◆ sha384_reference_digest

uint8_t sha384_reference_digest[MCUXCLCSS_HASH_OUTPUT_SIZE_SHA_384]
static

Expected hash value.

Examples
hash_sha384_one_block.c.

◆ sha2_384_digest

uint8_t sha2_384_digest[MCUXCLCSS_HASH_STATE_SIZE_SHA_384]
static

Destination buffer to receive the hash output of the SHA2-384 hashing.

Examples
hash_sha384_one_block.c.