From 9774d7980aaec85ebcc7eaf8bd6d6e7c6747d2a3 Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Wed, 19 Jul 2023 11:49:44 +0300 Subject: [PATCH] feat!: add deprecating message for the encrypted package (#521) * feat!: add deprecating message for the encrypted package Signed-off-by: Radoslav Dimitrov * chore: switch to using go-sslib/encrypted package Signed-off-by: Radoslav Dimitrov --------- Signed-off-by: Radoslav Dimitrov --- encrypted/encrypted.go | 4 ++++ local_store.go | 2 +- repo_test.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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 ( 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"