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.8.0-alpha.4
Published
Feb 29, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
17 minutes ago

Tools for package owners.