go/src/crypto/sha1/sha1.go

func init() {}

const Size

const BlockSize

const chunk

const init0

const init1

const init2

const init3

const init4

type digest

const magic

const marshaledSize

func (d *digest) MarshalBinary() ([]byte, error) {}

func (d *digest) AppendBinary(b []byte) ([]byte, error) {}

func (d *digest) UnmarshalBinary(b []byte) error {}

func consumeUint64(b []byte) ([]byte, uint64) {}

func consumeUint32(b []byte) ([]byte, uint32) {}

func (d *digest) Reset() {}

// New512_224 returns a new [hash.Hash] computing the SHA1 checksum. The Hash
// also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and
// [encoding.BinaryUnmarshaler] to marshal and unmarshal the internal
// state of the hash.
func New() hash.Hash {}

func (d *digest) Size() int {}

func (d *digest) BlockSize() int {}

func (d *digest) Write(p []byte) (nn int, err error) {}

func (d *digest) Sum(in []byte) []byte {}

func (d *digest) checkSum() [Size]byte {}

// ConstantTimeSum computes the same result of [Sum] but in constant time
func (d *digest) ConstantTimeSum(in []byte) []byte {}

func (d *digest) constSum() [Size]byte {}

// Sum returns the SHA-1 checksum of the data.
func Sum(data []byte) [Size]byte {}