crypto.sha1 #

Constants #

const (
	size       = 20
	block_size = 64

fn hexhash #

fn hexhash(s string) string

fn new #

fn new() &Digest

new returns a new Digest (implementing hash.Hash) computing the SHA1 checksum.

fn sum #

fn sum(data []byte) []byte

Sum returns the SHA-1 checksum of the data.

fn (Digest) write #

fn (mut d Digest) write(p_ []byte) int

fn (Digest) sum #

fn (d &Digest) sum(b_in []byte) []byte

fn (Digest) size #

fn (d &Digest) size() int

fn (Digest) block_size #

fn (d &Digest) block_size() int