1
0
mirror of https://github.com/opencontainers/go-digest.git synced 2025-07-10 23:20:55 +03:00

make sure the standard algorithms are registered

This makes sure that the expected algorithms are registered when
using this package.

Currently, the consumer of the package must import these, otherwise it's
not registered, resultig in "unsupported digest algorithm" errors.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-08-18 15:55:37 +02:00
parent b0b31a4595
commit 084376bb54
3 changed files with 6 additions and 3 deletions

View File

@ -19,8 +19,6 @@ import (
"bytes"
"crypto"
"crypto/rand"
_ "crypto/sha256"
_ "crypto/sha512"
"flag"
"fmt"
"strings"