crypto::sha256+x86_64 +linux
sha256: SHA-256 hashing algorithm
Index
Types
// Undocumented types: type state;
Constants
def BLOCKSZ: size = 64; def SZ: size = 32;
Functions
fn sha256() state;
Types
type state[permalink] [source]
Show undocumented member
type state = struct { hash::hash, h: [8]u32, x: [BLOCKSZ]u8, nx: size, ln: size, };
Constants
def BLOCKSZ[permalink] [source]
def BLOCKSZ: size = 64;
The internal block size.
def SZ[permalink] [source]
def SZ: size = 32;
The size, in bytes, of a SHA-256 digest.
Functions
fn sha256[permalink] [source]
fn sha256() state;
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.