38 #define SHA256_BLOCK_LENGTH 64
39 #define SHA256_DIGEST_LENGTH 32
40 #define SHA256_DIGEST_STRING_LENGTH (SHA256_DIGEST_LENGTH * 2 + 1)
41 #define SHA512_BLOCK_LENGTH 128
42 #define SHA512_DIGEST_LENGTH 64
43 #define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1)
68 void hmac_sha256(
const uint8_t* key,
const uint32_t keylen,
const uint8_t* msg,
const uint32_t msglen, uint8_t* hmac);
69 void hmac_sha512(
const uint8_t* key,
const uint32_t keylen,
const uint8_t* msg,
const uint32_t msglen, uint8_t* hmac);
void sha512_Init(SHA512_CTX *)
void sha256_Init(SHA256_CTX *)
#define SHA256_BLOCK_LENGTH
struct _SHA512_CTX SHA512_CTX
void hmac_sha512(const uint8_t *key, const uint32_t keylen, const uint8_t *msg, const uint32_t msglen, uint8_t *hmac)
void sha512_Update(SHA512_CTX *, const uint8_t *, size_t)
struct _SHA256_CTX SHA256_CTX
void hmac_sha256(const uint8_t *key, const uint32_t keylen, const uint8_t *msg, const uint32_t msglen, uint8_t *hmac)
void sha512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX *)
void sha512_Raw(const uint8_t *, size_t, uint8_t[SHA512_DIGEST_LENGTH])
#define SHA256_DIGEST_LENGTH
void sha256_Final(uint8_t[SHA256_DIGEST_LENGTH], SHA256_CTX *)
void sha256_Raw(const uint8_t *, size_t, uint8_t[SHA256_DIGEST_LENGTH])
#define SHA512_DIGEST_LENGTH
#define SHA512_BLOCK_LENGTH
void sha256_Update(SHA256_CTX *, const uint8_t *, size_t)