18#ifdef SUPPORT_HASH_SHA512_256
22#ifdef HASH_DMA_FUNCTION
23typedef hash_dma_ctx_t sha512_256_dma_ctx_t;
26uint32_t sha512_256_init(sha512_256_ctx_t *ctx);
28uint32_t sha512_256_update(sha512_256_ctx_t *ctx,
const uint8_t *msg,
31uint32_t sha512_256_final(sha512_256_ctx_t *ctx, uint8_t *digest);
33uint32_t sha512_256(uint8_t *msg, uint32_t msg_bytes, uint8_t *digest);
35#ifdef HASH_DMA_FUNCTION
36uint32_t sha512_256_dma_init(sha512_256_dma_ctx_t *ctx,
HASH_CALLBACK callback);
38uint32_t sha512_256_dma_update_blocks(sha512_256_dma_ctx_t *ctx, uint32_t *msg,
39 uint32_t msg_words, uint32_t *iterator);
41uint32_t sha512_256_dma_final(sha512_256_dma_ctx_t *ctx,
42 uint32_t *remainder_msg, uint32_t remainder_bytes,
45uint32_t sha512_256_dma(uint32_t *msg, uint32_t msg_bytes, uint32_t *digest,
void(* HASH_CALLBACK)(void)
Definition: hash_basic.h:195