You've already forked go-digest
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:
@ -19,8 +19,6 @@ import (
|
||||
"bytes"
|
||||
"crypto"
|
||||
"crypto/rand"
|
||||
_ "crypto/sha256"
|
||||
_ "crypto/sha512"
|
||||
"flag"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
Reference in New Issue
Block a user