Nimony

The road to Nim 3

sha2

nimony/lib/std/crypto/sha2.nim

SHA-2 (FIPS 180-4): SHA-256, SHA-384 and SHA-512.

SHA-256 is the transcript hash and the HKDF hash of the TLS 1.3 suites std/tls speaks; SHA-384 and SHA-512 are what certificate signatures are computed over. None of them branches on or indexes by the data, so the straightforward implementation is already constant time.