s/qmail
4.3.17
Next generation secure email transport
Loading...
Searching...
No Matches
4.3
sqmail-4.3.17
src
include
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
7
typedef
struct
8
{
9
uint8_t
data
[64];
10
uint32_t
datalen
;
11
uint32_t bitlen[2];
12
uint32_t state[8];
13
}
sha256_ctx
;
14
15
static
void
sha256_init(
sha256_ctx
*
ctx
);
16
static
void
sha256_transform(
sha256_ctx
*
ctx
, uint8_t *
data
);
17
static
void
sha256_update(
sha256_ctx
*
ctx
, uint8_t *
data
, uint32_t len);
18
static
void
sha256_final(uint8_t *
hash
,
sha256_ctx
*
ctx
);
19
extern
void
sha256_hash
(
char
*
hash
,
const
char
*
data
,
size_t
len);
20
21
#endif
data
stralloc data
Definition:
fastforward.c:118
hash
stralloc hash
Definition:
qmail-dksign.c:234
ctx
SSL_CTX * ctx
Definition:
qmail-remote.c:108
sha256_hash
void sha256_hash(char *hash, const char *data, size_t len)
Definition:
sha256.c:161
sha256_ctx
Definition:
sha256.h:8
sha256_ctx::datalen
uint32_t datalen
Definition:
sha256.h:10
Generated on Sun Oct 6 2024 13:37:44 for s/qmail by
1.9.6