hashing

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: ISC Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const DEFAULT_HASHING_ALGORITHM = "BLAKE3"

Variables

This section is empty.

Functions

func GetHasher

func GetHasher(name string) hash.Hash

func GetMACHasher

func GetMACHasher(name string, secret []byte) hash.Hash

Types

type Configuration

type Configuration struct {
	Algorithm string `json:"algorithm"` // Hashing algorithm name (e.g., "SHA256", "BLAKE3")
	Bits      uint32 `json:"bits"`
}

func LookupDefaultConfiguration

func LookupDefaultConfiguration(algorithm string) (*Configuration, error)

func NewDefaultConfiguration

func NewDefaultConfiguration() *Configuration

Jump to

Keyboard shortcuts

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