18#ifdef SUPPORT_HASH_SHA3_512
22#ifdef HASH_DMA_FUNCTION
23typedef hash_dma_ctx_t sha3_512_dma_ctx_t;
26uint32_t sha3_512_init(sha3_512_ctx_t *ctx);
28uint32_t sha3_512_update(sha3_512_ctx_t *ctx,
const uint8_t *msg,
31uint32_t sha3_512_final(sha3_512_ctx_t *ctx, uint8_t *digest);
33uint32_t sha3_512(uint8_t *msg, uint32_t msg_bytes, uint8_t *digest);
35#ifdef HASH_DMA_FUNCTION
36uint32_t sha3_512_dma_init(sha3_512_dma_ctx_t *ctx,
HASH_CALLBACK callback);
38uint32_t sha3_512_dma_update_blocks(sha3_512_dma_ctx_t *ctx, uint32_t *msg,
39 uint32_t msg_words, uint32_t *iterator);
41uint32_t sha3_512_dma_final(sha3_512_dma_ctx_t *ctx, uint32_t *remainder_msg,
42 uint32_t remainder_bytes, uint32_t *digest);
44uint32_t sha3_512_dma(uint32_t *msg, uint32_t msg_bytes, uint32_t *digest,
void(* HASH_CALLBACK)(void)
Definition: hash_basic.h:195