42 #ifndef ATCA_CRYPTO_SW_SHA2_H
43 #define ATCA_CRYPTO_SW_SHA2_H
57 #define ATCA_SHA2_256_DIGEST_SIZE (32)
70 int atcac_sw_sha2_256(
const uint8_t * data,
size_t data_size, uint8_t digest[ATCA_SHA2_256_DIGEST_SIZE]);
int atcac_sw_sha2_256(const uint8_t *data, size_t data_size, uint8_t digest[ATCA_SHA2_256_DIGEST_SIZE])
single call convenience function to comput SHA256 of given data
Definition: atca_crypto_sw_sha2.c:95
int atcac_sw_sha2_256_update(atcac_sha2_256_ctx *ctx, const uint8_t *data, size_t data_size)
updates the running hash with the next block of data, called iteratively for the entire stream of dat...
Definition: atca_crypto_sw_sha2.c:67
int atcac_sw_sha2_256_init(atcac_sha2_256_ctx *ctx)
initializes the SHA256 software
Definition: atca_crypto_sw_sha2.c:50
int atcac_sw_sha2_256_finish(atcac_sha2_256_ctx *ctx, uint8_t digest[ATCA_SHA2_256_DIGEST_SIZE])
completes the final SHA calculation and returns the final digest/hash
Definition: atca_crypto_sw_sha2.c:80
Definition: atca_crypto_sw_sha2.h:59
Common defines for CryptoAuthLib software crypto wrappers.
#define ATCA_SHA2_256_DIGEST_SIZE
Definition: atca_crypto_sw_sha2.h:57