mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
fix: typo in FIPS sha256 (#15024)
This commit is contained in:
committed by
GitHub
parent
f7cecf0945
commit
be6ccd129d
@@ -21,7 +21,7 @@
|
|||||||
package sha256
|
package sha256
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fipsha256 "crypto/sha256"
|
fipssha256 "crypto/sha256"
|
||||||
"hash"
|
"hash"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ import (
|
|||||||
// The SHA256 implementation is FIPS 140-2 compliant when the
|
// The SHA256 implementation is FIPS 140-2 compliant when the
|
||||||
// boringcrypto branch of Go is used.
|
// boringcrypto branch of Go is used.
|
||||||
// Ref: https://github.com/golang/go/tree/dev.boringcrypto
|
// Ref: https://github.com/golang/go/tree/dev.boringcrypto
|
||||||
func New() hash.Hash { return fipsha256.New() }
|
func New() hash.Hash { return fipssha256.New() }
|
||||||
|
|
||||||
// Sum256 returns the SHA256 checksum of the data.
|
// Sum256 returns the SHA256 checksum of the data.
|
||||||
func Sum256(data []byte) [fipssha256.Size]byte { return fipssha256.Sum256(data) }
|
func Sum256(data []byte) [fipssha256.Size]byte { return fipssha256.Sum256(data) }
|
||||||
|
|||||||
Reference in New Issue
Block a user