Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

shw_hash.h File Reference

Detailed Description

This file contains definitions for use of the (internal) SHW hash software computation. It defines the usual three steps:

The only other item of note to callers is SHW_HASH_LEN, which is the number of bytes calculated for the hash.

Definition in file shw_hash.h.

Go to the source code of this file.


struct  shw_hash_state


#define SHW_HASH_BLOCK_LEN   64
#define SHW_HASH_LEN   32
#define SHW_HASH_STATE_SIZE   32


typedef struct shw_hash_state shw_hash_state_t


fsl_shw_return_t shw_hash_final (shw_hash_state_t *state, uint8_t *hash, unsigned int hash_len)
fsl_shw_return_t shw_hash_init (shw_hash_state_t *state, fsl_shw_hash_alg_t algorithm)
fsl_shw_return_t shw_hash_update (shw_hash_state_t *state, const uint8_t *msg, unsigned int msg_len)

Generated by  Doxygen 1.6.0   Back to index