From 135740e4e970609383c81eebcf149d0bc8dd7f58 Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Tue, 18 Jul 2023 17:20:11 +0300 Subject: [PATCH 1/2] feat!: add deprecating message for the encrypted package Signed-off-by: Radoslav Dimitrov --- encrypted/encrypted.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/encrypted/encrypted.go b/encrypted/encrypted.go index 037a718a..b884d611 100644 --- a/encrypted/encrypted.go +++ b/encrypted/encrypted.go @@ -3,6 +3,10 @@ // // It uses scrypt derive a key from the passphrase and the NaCl secret box // cipher for authenticated encryption. +// +// Deprecated: The encrypted package from go-tuf is already moved to +// https://github.com/secure-systems-lab/go-securesystemslib and will be deprecated here. +// Use github.com/secure-systems-lab/go-securesystemslib/encrypted instead. package encrypted import ( From 1273070f397f245e0e362a303d050607dd7379d8 Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Tue, 18 Jul 2023 17:27:37 +0300 Subject: [PATCH 2/2] chore: switch to using go-sslib/encrypted package Signed-off-by: Radoslav Dimitrov --- local_store.go | 2 +- repo_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/local_store.go b/local_store.go index fee03f31..b59721e6 100644 --- a/local_store.go +++ b/local_store.go @@ -12,8 +12,8 @@ import ( "path/filepath" "strings" + "github.com/secure-systems-lab/go-securesystemslib/encrypted" "github.com/theupdateframework/go-tuf/data" - "github.com/theupdateframework/go-tuf/encrypted" "github.com/theupdateframework/go-tuf/internal/fsutil" "github.com/theupdateframework/go-tuf/internal/sets" "github.com/theupdateframework/go-tuf/pkg/keys" diff --git a/repo_test.go b/repo_test.go index 4d7d73f7..01ae3416 100644 --- a/repo_test.go +++ b/repo_test.go @@ -20,8 +20,8 @@ import ( "time" "github.com/secure-systems-lab/go-securesystemslib/cjson" + "github.com/secure-systems-lab/go-securesystemslib/encrypted" "github.com/theupdateframework/go-tuf/data" - "github.com/theupdateframework/go-tuf/encrypted" "github.com/theupdateframework/go-tuf/internal/sets" "github.com/theupdateframework/go-tuf/pkg/keys" "github.com/theupdateframework/go-tuf/pkg/targets"