One SHA-256 compression function and the initial state, freestanding C
$ sexc add @ajax/sha256-compress- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 01:45v/# 1 version
- drwxr-xr-x-Oct 27 01:45files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 01:45 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0
- dependents
- @ajax/mesh-abi-view-pipedemo, @ajax/mesh-prog-sha256d, @ajax/mesh-prog-sha256d-wasm, @ajax/sha256-stream
- keywords
- sha256 hash crypto freestanding
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/sha256-compress
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/sha256-compress 2 3One SHA-256 compression function and the initial state, freestanding C. 4 5```c 6#include "sha256_compress.h" 7``` 8 9## Ported from 10 11[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-abi/src/v2/views.rs (pipedemo::compress and its constants). 12 13## Device code 14 15The header is freestanding (`<stdint.h>`, `<stddef.h>`, `<stdbool.h>` only): it compiles for the host, `nvptx64-nvidia-cuda` and `wasm32`. Functions the Rust marks `const fn` are `static inline` here. 16 17## Tests 18 19- none of its own: it is exercised by the packages that use it 20 21## Licence 22 23MIT. See the repository's LICENSE.