s/qmail 4.3.17
Next generation secure email transport
Loading...
Searching...
No Matches
sha256.h
Go to the documentation of this file.
1#ifndef SHA256_H
2#define SHA256_H
3
4#include <stddef.h>
5#include <stdint.h>
6
7typedef struct
8{
9 uint8_t data[64];
10 uint32_t datalen;
11 uint32_t bitlen[2];
12 uint32_t state[8];
14
15static void sha256_init(sha256_ctx *ctx);
16static void sha256_transform(sha256_ctx *ctx, uint8_t *data);
17static void sha256_update(sha256_ctx *ctx, uint8_t *data, uint32_t len);
18static void sha256_final(uint8_t *hash, sha256_ctx *ctx);
19extern void sha256_hash(char *hash,const char *data, size_t len);
20
21#endif
stralloc data
Definition: fastforward.c:118
stralloc hash
Definition: qmail-dksign.c:234
SSL_CTX * ctx
Definition: qmail-remote.c:108
void sha256_hash(char *hash, const char *data, size_t len)
Definition: sha256.c:161
uint32_t datalen
Definition: sha256.h:10