4.20.1 Functions

  • void SHA256_Initialize (void)

    Initializes a SHA-256 context to perform a SHA-256 hash.

  • void SHA256_DataAdd (uint8_t *data)

    This routine adds data to a SHA-256 hash being calculated. When the data length reaches a block size (64 bytes), this function will calculate the hash over that block and store the current hash value in the hash context.

  • void SHA256_Calculate (uint8_t *result)

    This routine finishes calculating a SHA-256 hash. It will automatically add the padding required by the hashing algorithm and return the hash digest.

  • void SHA256 (const uint32_t startAddress, const uint32_t endAddress, uint8_t *resultBuffer)

    This routine calculates the SHA256 hash over the user application's memory. The calculation covers the range from startAddress to endAddress, inclusive.