Our great sponsors
-
constantine
Constantine: modular, high-performance, zero-dependency cryptography stack for proof systems and blockchain protocols.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
For reference, here is mine: - https://github.com/mratsim/constantine/blob/8a7c35af598d3a1d08c7b31c85234853d849eea7/constantine/hashes/h_sha256.nim#L219
Here is one I use in production (the same as OpenSSL but just SSE3, audited by NCC): - https://github.com/supranational/blst/blob/master/src/sha256.h - https://github.com/supranational/blst/blob/5435c307e5b3540a6600b816a6d01bdb13a81869/src/no_asm.h#L1089 - https://github.com/supranational/blst/blob/master/src/asm/sha256-x86_64.pl
And the one from libsecp256k1 (which underlies Bitcoin) and is optimized for HMAC: - https://github.com/bitcoin-core/secp256k1/blob/master/src/hash_impl.h