From be6ccd129d3e759abaaeb326d9371aa769348771 Mon Sep 17 00:00:00 2001 From: Aditya Manthramurthy Date: Wed, 1 Jun 2022 19:11:04 -0700 Subject: [PATCH] fix: typo in FIPS sha256 (#15024) --- internal/hash/sha256/sh256_fips.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/hash/sha256/sh256_fips.go b/internal/hash/sha256/sh256_fips.go index 7a70901b1..61f333765 100644 --- a/internal/hash/sha256/sh256_fips.go +++ b/internal/hash/sha256/sh256_fips.go @@ -21,7 +21,7 @@ package sha256 import ( - fipsha256 "crypto/sha256" + fipssha256 "crypto/sha256" "hash" ) @@ -29,7 +29,7 @@ import ( // The SHA256 implementation is FIPS 140-2 compliant when the // boringcrypto branch of Go is used. // 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. func Sum256(data []byte) [fipssha256.Size]byte { return fipssha256.Sum256(data) }