Back to godoc.org

Package sha1

v0.2.2
Latest Go to latest
Published: Jul 18, 2020 | License: Apache-2.0 | Module: cuelang.org/go

Index

Package Files

Constants

const BlockSize = 64

The blocksize of SHA-1 in bytes.

const Size = 20

The size of a SHA-1 checksum in bytes.

func Sum

func Sum(data []byte) []byte

Sum returns the SHA-1 checksum of the data.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier