skip to content
[readonly]
==> include/sha256_compress.h <==
1/* @ajax/sha256-compress: One SHA-256 compression function and the initial state, freestanding C.
2 *
3 * Part of alpha-c-mesh, a C port of alpha-rust-mesh (README.md says from where). */
4#ifndef SHA256_COMPRESS_H
5#define SHA256_COMPRESS_H
6
7#include <stdbool.h>
8#include <stddef.h>
9#include <stdint.h>
10
11/* One SHA-256 compression (FIPS 180-4 §6.2.2) of the 16 big-endian message
12 * words w into the state h. */
13void sha256_compress(uint32_t h[8], const uint32_t w[16]);
14
15/* SHA-256's initial state, H(0). */
16extern const uint32_t SHA256_H0[8];
17
18#endif