1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 23:48:58 +00:00
pqcrypto/common/sha2.h

23 lines
871 B
C
Raw Normal View History

2019-01-15 14:35:25 +00:00
#ifndef SHA2_H
#define SHA2_H
2019-03-11 13:41:11 +00:00
#include <stddef.h>
#include <stdint.h>
2019-03-11 15:33:47 +00:00
void sha256_inc_init(uint8_t *state);
void sha256_inc_blocks(uint8_t *state, const uint8_t *in, size_t inblocks);
void sha256_inc_finalize(uint8_t *out, uint8_t *state, const uint8_t *in, size_t inlen);
void sha256(uint8_t *out, const uint8_t *in, size_t inlen);
2019-03-11 13:41:11 +00:00
2019-03-11 15:33:47 +00:00
void sha384_inc_init(uint8_t *state);
void sha384_inc_blocks(uint8_t *state, const uint8_t *in, size_t inblocks);
void sha384_inc_finalize(uint8_t *out, uint8_t *state, const uint8_t *in, size_t inlen);
void sha384(uint8_t *out, const uint8_t *in, size_t inlen);
2019-03-11 13:41:11 +00:00
2019-03-11 15:33:47 +00:00
void sha512_inc_init(uint8_t *state);
void sha512_inc_blocks(uint8_t *state, const uint8_t *in, size_t inblocks);
void sha512_inc_finalize(uint8_t *out, uint8_t *state, const uint8_t *in, size_t inlen);
void sha512(uint8_t *out, const uint8_t *in, size_t inlen);
2019-01-15 14:35:25 +00:00
#endif