Microchip® Advanced Software Framework

atca_crypto_sw_sha2.c File Reference

Wrapper API for software SHA 256 routines.

Functions

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 which computes Hash of given data using SHA256 software More...
 
int atcac_sw_sha2_256_finish (atcac_sha2_256_ctx *ctx, uint8_t digest[ATCA_SHA2_256_DIGEST_SIZE])
 completes the final SHA256 calculation and returns the final digest/hash More...
 
int atcac_sw_sha2_256_init (atcac_sha2_256_ctx *ctx)
 initializes the SHA256 software More...
 
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 data to be hashed using the SHA256 software More...