fips140hash

Imports

Imports #

fsha3 "crypto/internal/fips140/sha3"
"crypto/sha3"
"hash"
_ "unsafe"

Functions

Unwrap function #

Unwrap returns h, or a crypto/internal/fips140 inner implementation of h. The return value can be type asserted to one of [crypto/internal/fips140/sha256.Digest], [crypto/internal/fips140/sha512.Digest], or [crypto/internal/fips140/sha3.Digest] if it is a FIPS 140-3 approved hash.

func Unwrap(h hash.Hash) hash.Hash

UnwrapNew function #

UnwrapNew returns a function that calls newHash and applies [Unwrap] to the return value.

func UnwrapNew(newHash func() Hash) (func() hash.Hash)

sha3Unwrap function #

go:linkname sha3Unwrap

func sha3Unwrap(*sha3.SHA3) *fsha3.Digest

Generated with Arrow