diff --git a/internal/pkg/secret/encryption_engine.go b/internal/pkg/secret/encryption_engine.go index 6b82e1f48b..1fe3d2ceb6 100644 --- a/internal/pkg/secret/encryption_engine.go +++ b/internal/pkg/secret/encryption_engine.go @@ -13,6 +13,11 @@ import ( "github.com/confluentinc/cli/internal/pkg/log" ) +const ( + SaltLength = 24 + NonceLength = 12 +) + // Encryption Engine performs Encryption, Decryption and Hash operations. type EncryptionEngine interface { Encrypt(plainText string, key []byte) (string, string, error) diff --git a/internal/pkg/secret/encryption_other.go b/internal/pkg/secret/encryption_other.go index 2b8cdd334e..9bae7983b9 100644 --- a/internal/pkg/secret/encryption_other.go +++ b/internal/pkg/secret/encryption_other.go @@ -20,8 +20,6 @@ import ( const ( iterationNumber = 10000 keyLength = 32 - SaltLength = 24 - NonceLength = 12 ) func GenerateRandomBytes(n int) ([]byte, error) {