std1.0.0-beta-7 SafeC docs

std :: crypto::hash

Function std::hash_bytes

#include <std/crypto/hash.h> source

generic<H: Hasher> void hash_bytes(
    H h,
    []const unsigned char data,
    []unsigned char digest,
)

The digest of data with a fresh context 'h' (taken by value, so the caller's copy stays fresh): hash_bytes(Sha256Ctx::new(), ...).