CryptoAuthLib
Atmel CryptoAuthentication Library
|
Software implementation of the SHA256 algorithm. More...
Macros | |
#define | rotate_right(value, places) ((value >> places) | (value << (32 - places))) |
Functions | |
void | sw_sha256_init (sw_sha256_ctx *ctx) |
void | sw_sha256_update (sw_sha256_ctx *ctx, const uint8_t *msg, uint32_t msg_size) |
void | sw_sha256_final (sw_sha256_ctx *ctx, uint8_t digest[SHA256_DIGEST_SIZE]) |
void | sw_sha256 (const uint8_t *message, unsigned int len, uint8_t digest[SHA256_DIGEST_SIZE]) |
Software implementation of the SHA256 algorithm.
Copyright (c) 2015 Atmel Corporation. All rights reserved.
#define rotate_right | ( | value, | |
places | |||
) | ((value >> places) | (value << (32 - places))) |
void sw_sha256 | ( | const uint8_t * | message, |
unsigned int | len, | ||
uint8_t | digest[SHA256_DIGEST_SIZE] | ||
) |
void sw_sha256_final | ( | sw_sha256_ctx * | ctx, |
uint8_t | digest[SHA256_DIGEST_SIZE] | ||
) |
void sw_sha256_init | ( | sw_sha256_ctx * | ctx | ) |
void sw_sha256_update | ( | sw_sha256_ctx * | ctx, |
const uint8_t * | msg, | ||
uint32_t | msg_size | ||
) |