42 #ifndef SHA2_ROUTINES_H
43 #define SHA2_ROUTINES_H
47 #define SHA256_DIGEST_SIZE (32)
48 #define SHA256_BLOCK_SIZE (64)
73 #endif // SHA2_ROUTINES_H
#define SHA256_DIGEST_SIZE
Definition: sha2_routines.h:47
void sw_sha256_update(sw_sha256_ctx *ctx, const uint8_t *message, uint32_t len)
Definition: sha2_routines.c:156
#define SHA256_BLOCK_SIZE
Definition: sha2_routines.h:48
void sw_sha256(const uint8_t *message, unsigned int len, uint8_t digest[SHA256_DIGEST_SIZE])
Definition: sha2_routines.c:221
void sw_sha256_final(sw_sha256_ctx *ctx, uint8_t digest[SHA256_DIGEST_SIZE])
Definition: sha2_routines.c:185
Definition: sha2_routines.h:54
uint32_t total_msg_size
Total number of message bytes processed.
Definition: sha2_routines.h:55
void sw_sha256_init(sw_sha256_ctx *ctx)
Definition: sha2_routines.c:143
uint32_t block_size
Number of bytes in current block.
Definition: sha2_routines.h:56