package sha1

import "github.com/mmcloughlin/avo/examples/sha1"

Package sha1 implements the SHA-1 hash in avo.

Index

Constants

const BlockSize = 64

BlockSize is the block size of SHA-1 in bytes.

const Size = 20

Size of a SHA-1 checksum in bytes.

Functions

func Sum

func Sum(data []byte) [Size]byte

Sum returns the SHA-1 checksum of data.

Source Files

doc.go sha1.go stub.go

Version
v0.3.1
Published
Oct 31, 2021
Platform
js/wasm
Imports
1 packages
Last checked
1 month ago

Tools for package owners.