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

sha1.go

Version
v0.0.14
Published
Nov 2, 2019
Platform
darwin/amd64
Imports
1 packages
Last checked
36 minutes ago

Tools for package owners.