iana

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSupportedHashingAlgorithm

func IsSupportedHashingAlgorithm(name HashingAlgorithm) bool

func Sum

func Sum(algorithm HashingAlgorithm, content string) ([]byte, error)

Types

type HashingAlgorithm

type HashingAlgorithm string
const (
	SHA256     HashingAlgorithm = "sha-256"
	SHA256_128 HashingAlgorithm = "sha-256-128"
	SHA256_120 HashingAlgorithm = "sha-256-120"
	SHA256_96  HashingAlgorithm = "sha-256-96"
	SHA256_64  HashingAlgorithm = "sha-256-64"
	SHA256_32  HashingAlgorithm = "sha-256-32"
	SHA384     HashingAlgorithm = "sha-384"
	SHA512     HashingAlgorithm = "sha-512"
	SHA3_224   HashingAlgorithm = "sha3-224"
	SHA3_256   HashingAlgorithm = "sha3-256"
	SHA3_384   HashingAlgorithm = "sha3-384"
	SHA3_512   HashingAlgorithm = "sha3-512"
)

Jump to

Keyboard shortcuts

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