sha256

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

This package use build tags to select between github.com/minio/sha256-simd for go1.20 and bellow and crypto/sha256 for go1.21 and above. This is used because a fast SHANI implementation of sha256 is only avaiable in the std for go1.21 and above. See https://go.dev/issue/50543. TODO: Once go1.22 releases remove this package and replace all uses with crypto/sha256 because the two supported version of go will have the fast implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

func Sum256

func Sum256(b []byte) [sha256.Size]byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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