// Undocumented types: type state;
const BLOCKSIZE: size; const SIZE: size;
fn sha256() state;
type state = struct { hash::hash, h: [8]u32, x: [BLOCKSIZE]u8, nx: size, ln: size, };
def BLOCKSIZE: size;
The internal block size.
def SIZE: size;
The size, in bytes, of a SHA-256 digest.
Creates a hash::hash which computes a SHA-256 hash. If this function is used to hash sensitive information, the caller should call hash::close to erase sensitive data from memory after use; if not, the use of hash::close is optional.