hashes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashType

type HashType string
const (
	MD5         HashType = "MD5"
	SHA1        HashType = "SHA1"
	SHA224      HashType = "SHA224"
	SHA256      HashType = "SHA256"
	SHA384      HashType = "SHA384"
	SHA512      HashType = "SHA512"
	SHA3_224    HashType = "SHA3-224"
	SHA3_256    HashType = "SHA3-256"
	SHA3_384    HashType = "SHA3-384"
	SHA3_512    HashType = "SHA3-512"
	BLAKE2B_256 HashType = "BLAKE2B-256"
	BLAKE2B_384 HashType = "BLAKE2B-384"
	BLAKE2B_512 HashType = "BLAKE2B-512"
	BLAKE2S_128 HashType = "BLAKE2S-128"
	BLAKE2S_256 HashType = "BLAKE2S-256"
	Unknown     HashType = "Unknown" // Represents an unknown or unsupported hash type
)

func FromId

func FromId(id int16) HashType

func (HashType) HashNew

func (h HashType) HashNew() func() hash.Hash

func (HashType) Id

func (h HashType) Id() int16

func (HashType) IsUnknown

func (h HashType) IsUnknown() bool

func (HashType) IsValid

func (h HashType) IsValid() bool

func (HashType) NewHmac

func (h HashType) NewHmac(key []byte) hash.Hash

func (HashType) Size

func (h HashType) Size() int

func (HashType) String

func (h HashType) String() string

Jump to

Keyboard shortcuts

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