package sha1

import "cuelang.org/go/pkg/crypto/sha1"

Index

Constants

const BlockSize = 64

The blocksize of SHA-1 in bytes.

const Size = 20

The size of a SHA-1 checksum in bytes.

Functions

func Sum

func Sum(data []byte) []byte

Sum returns the SHA-1 checksum of the data.

Source Files

pkg.go sha1.go

Version
v0.4.1-rc.2
Published
Jan 11, 2022
Platform
js/wasm
Imports
3 packages
Last checked
36 minutes ago

Tools for package owners.