diff --git a/examples/multirepo/repository/generate_metadata.go b/examples/multirepo/repository/generate_metadata.go index d6c886ed..bc329ed9 100644 --- a/examples/multirepo/repository/generate_metadata.go +++ b/examples/multirepo/repository/generate_metadata.go @@ -19,6 +19,7 @@ package main import ( "crypto" + "crypto/ed25519" "fmt" "os" "path/filepath" @@ -28,7 +29,6 @@ import ( "github.com/sigstore/sigstore/pkg/signature" "github.com/theupdateframework/go-tuf/v2/metadata" "github.com/theupdateframework/go-tuf/v2/metadata/repository" - "golang.org/x/crypto/ed25519" ) func main() { diff --git a/examples/repository/basic_repository.go b/examples/repository/basic_repository.go index e41ebaaa..459d4bb1 100644 --- a/examples/repository/basic_repository.go +++ b/examples/repository/basic_repository.go @@ -20,6 +20,7 @@ package main import ( "crypto" "crypto/ecdsa" + "crypto/ed25519" "crypto/elliptic" "crypto/rand" "crypto/rsa" @@ -31,7 +32,6 @@ import ( "github.com/sigstore/sigstore/pkg/signature" "github.com/theupdateframework/go-tuf/v2/metadata" "github.com/theupdateframework/go-tuf/v2/metadata/repository" - "golang.org/x/crypto/ed25519" ) // A TUF repository example using the low-level TUF Metadata API. diff --git a/go.mod b/go.mod index 46ad31c9..5a09b04a 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,6 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.8.0 github.com/stretchr/testify v1.9.0 - golang.org/x/crypto v0.20.0 ) require ( @@ -23,6 +22,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect + golang.org/x/crypto v0.20.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/term v0.17.0 // indirect google.golang.org/grpc v1.56.3 // indirect