digest: use github.com/minio/sha256-simd

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2022-11-29 13:38:25 +09:00
parent 8b42517786
commit cde9490779
39 changed files with 4925 additions and 0 deletions

View File

@@ -17,10 +17,12 @@
package main
import (
"crypto"
"fmt"
"os"
"github.com/containerd/containerd/cmd/ctr/app"
"github.com/containerd/containerd/pkg/hasher"
"github.com/containerd/containerd/pkg/seed"
"github.com/urfave/cli"
)
@@ -29,6 +31,7 @@ var pluginCmds = []cli.Command{}
func init() {
seed.WithTimeAndRand()
crypto.RegisterHash(crypto.SHA256, hasher.NewSHA256)
}
func main() {