CryptoAuthLib
Atmel CryptoAuthentication Library
|
Software implementation of the SHA256 algorithm. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | sw_sha256_ctx |
Macros | |
#define | SHA256_DIGEST_SIZE (32) |
#define | SHA256_BLOCK_SIZE (64) |
Functions | |
void | sw_sha256_init (sw_sha256_ctx *ctx) |
void | sw_sha256_update (sw_sha256_ctx *ctx, const uint8_t *message, uint32_t len) |
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 SHA256_BLOCK_SIZE (64) |
#define SHA256_DIGEST_SIZE (32) |
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 * | message, | ||
uint32_t | len | ||
) |