SemiDrive SSDK Appication Program Interface PTG3.0
Data Structures
hash.h File Reference
#include <hash_basic.h>

Go to the source code of this file.

Data Structures

struct  hash_status_t
 
struct  hash_ctx_t
 

Function Documentation

◆ check_hash_alg()

uint8_t check_hash_alg ( HASH_ALG  hash_alg)

◆ hash()

uint32_t hash ( HASH_ALG  hash_alg,
uint8_t *  msg,
uint32_t  msg_bytes,
uint8_t *  digest 
)

◆ hash_final()

uint32_t hash_final ( hash_ctx_t ctx,
uint8_t *  digest 
)

◆ hash_get_block_word_len()

uint8_t hash_get_block_word_len ( HASH_ALG  hash_alg)

◆ hash_get_digest_word_len()

uint8_t hash_get_digest_word_len ( HASH_ALG  hash_alg)

◆ hash_get_iterator_word_len()

uint8_t hash_get_iterator_word_len ( HASH_ALG  hash_alg)

◆ hash_init()

uint32_t hash_init ( hash_ctx_t ctx,
HASH_ALG  hash_alg 
)

◆ hash_set_IV()

void hash_set_IV ( HASH_ALG  hash_alg,
uint8_t  hash_iterator_words 
)

◆ hash_set_tx_bit_len()

void hash_set_tx_bit_len ( hash_ctx_t ctx,
uint32_t  block_count 
)

◆ hash_start_calculate()

void hash_start_calculate ( hash_ctx_t ctx)

◆ hash_total_bytelen_2_bitlen()

void hash_total_bytelen_2_bitlen ( uint32_t *  a,
uint32_t  a_words 
)

◆ hash_total_len_add_uint32()

uint8_t hash_total_len_add_uint32 ( uint32_t *  a,
uint32_t  a_words,
uint32_t  b 
)

◆ hash_update()

uint32_t hash_update ( hash_ctx_t ctx,
const uint8_t *  msg,
uint32_t  msg_bytes 
)