18#ifdef SUPPORT_HASH_SHA1
22#ifdef HASH_DMA_FUNCTION
23typedef hash_dma_ctx_t sha1_dma_ctx_t;
26uint32_t sha1_init(sha1_ctx_t *ctx);
28uint32_t sha1_update(sha1_ctx_t *ctx,
const uint8_t *msg, uint32_t msg_bytes);
30uint32_t sha1_final(sha1_ctx_t *ctx, uint8_t *digest);
32uint32_t sha1(uint8_t *msg, uint32_t msg_bytes, uint8_t *digest);
34#ifdef HASH_DMA_FUNCTION
35uint32_t sha1_dma_init(sha1_dma_ctx_t *ctx,
HASH_CALLBACK callback);
37uint32_t sha1_dma_update_blocks(sha1_dma_ctx_t *ctx, uint32_t *msg,
38 uint32_t msg_words, uint32_t *iterator);
40uint32_t sha1_dma_final(sha1_dma_ctx_t *ctx, uint32_t *remainder_msg,
41 uint32_t remainder_bytes, uint32_t *digest);
43uint32_t sha1_dma(uint32_t *msg, uint32_t msg_bytes, uint32_t *digest,
void(* HASH_CALLBACK)(void)
Definition: hash_basic.h:195