From 1319ba6742a8562453646763adad22379674bab5 Mon Sep 17 00:00:00 2001 From: zeripath <art27@cantab.net> Date: Wed, 22 Feb 2023 19:21:46 +0000 Subject: Use minio/sha256-simd for accelerated SHA256 (#23052) minio/sha256-simd provides additional acceleration for SHA256 using AVX512, SHA Extensions for x86 and ARM64 for ARM. It provides a drop-in replacement for crypto/sha256 and if the extensions are not available it falls back to standard crypto/sha256. --------- Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com> --- models/migrations/base/hash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/migrations/base') diff --git a/models/migrations/base/hash.go b/models/migrations/base/hash.go index 00fd1efd4a..0debec272b 100644 --- a/models/migrations/base/hash.go +++ b/models/migrations/base/hash.go @@ -4,9 +4,9 @@ package base import ( - "crypto/sha256" "encoding/hex" + "github.com/minio/sha256-simd" "golang.org/x/crypto/pbkdf2" ) -- cgit v1.2.3