crypto::sha1 +linux +x86_64

Index

Types

// Undocumented types:
type state;

Constants

const SIZE: size;

// Undocumented constants:
const BLOCKSIZE: size;

Functions

fn sha1() state;

Types

type state[link]

Show undocumented member
type state = struct {
	hash::hash,
	h: [5]u32,
	x: [chunk]u8,
	nx: size,
	ln: size,
};

Constants

def SIZE[link]

def SIZE: size;

The size, in bytes, of a SHA-1 digest.

def BLOCKSIZE[link]

Show undocumented member
def BLOCKSIZE: size;

Functions

fn sha1[link]

fn sha1() state;

Creates a hash::hash which computes a SHA-1 hash. Note that this algorithm is no longer considered secure. Where possible, applications are encouraged to use crypto::sha256 or crypto::sha512 instead. 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.