k12

package
v1.0.3002 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// size of a K12 chunk
	BlockSize = 8192
)

Variables

This section is empty.

Functions

func New

func New(customString []byte) *digest

The constructor requires a customization string.

func NewWithSize

func NewWithSize(customString []byte, hashSize int) *digest

The constructor requires a customization string.

func Sum

func Sum(customString []byte, data []byte) (out [32]byte)

Sum returns the k12 checksum of the data.

func SumWithSize

func SumWithSize(customString []byte, data []byte, hashSize int) (out []byte)

SumWithSize returns the k12 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL