123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #ifndef NRF_CC310_BL_HASH_SHA256_H__
- #define NRF_CC310_BL_HASH_SHA256_H__
- #include <stdint.h>
- #include "nrf_cc310_bl_hash_common.h"
- #include "crys_error.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct
- {
- uint32_t init_val;
- uint8_t context_buffer[NRF_CC310_BL_HASH_CONTEXT_BUFFER_SIZE_SHA256];
- } nrf_cc310_bl_hash_context_sha256_t;
- typedef uint8_t nrf_cc310_bl_hash_digest_sha256_t[NRF_CC310_BL_SHA256_DIGEST_SIZE_IN_BYTES];
- CRYSError_t nrf_cc310_bl_hash_sha256_init(
- nrf_cc310_bl_hash_context_sha256_t * const p_hash_context);
- CRYSError_t nrf_cc310_bl_hash_sha256_update(
- nrf_cc310_bl_hash_context_sha256_t * const p_hash_context,
- uint8_t const * p_src,
- uint32_t len);
- CRYSError_t nrf_cc310_bl_hash_sha256_finalize(
- nrf_cc310_bl_hash_context_sha256_t * const p_hash_context,
- nrf_cc310_bl_hash_digest_sha256_t * const p_digest);
- #ifdef __cplusplus
- }
- #endif
- #endif
|