// Generated by Lisette bindgen
// Source: crypto/sha1 (Go stdlib)
// Go: 1.25.10
// Lisette: 0.3.0

import "go:hash"

/// New 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.
pub fn New() -> hash.Hash

/// Sum returns the SHA-1 checksum of the data.
#[go(array_return)]
pub fn Sum(data: Slice<byte>) -> Slice<byte>

/// The blocksize of SHA-1 in bytes.
pub const BlockSize = 64

/// The size of a SHA-1 checksum in bytes.
pub const Size = 20
