From f11493842e25c5fd6d3d1a7281ca8e1942d56af7 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Sat, 21 Sep 2024 06:50:33 +0530 Subject: [PATCH] [cli] Handle decryption for new libsodium wrapper --- cli/main.go | 2 +- cli/pkg/mapper/authenticator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/main.go b/cli/main.go index 1c92981dca..29d0bddf23 100644 --- a/cli/main.go +++ b/cli/main.go @@ -15,7 +15,7 @@ import ( "strings" ) -var AppVersion = "0.2.0" +var AppVersion = "0.2.1" func main() { cliDBPath, err := GetCLIConfigPath() diff --git a/cli/pkg/mapper/authenticator.go b/cli/pkg/mapper/authenticator.go index e4c997dd54..6849e22c70 100644 --- a/cli/pkg/mapper/authenticator.go +++ b/cli/pkg/mapper/authenticator.go @@ -9,7 +9,7 @@ import ( ) func MapRemoteAuthEntityToString(ctx context.Context, authEntity models.AuthEntity, authKey []byte) (*string, error) { - _, decrypted, err := eCrypto.DecryptChaChaBase64(*authEntity.EncryptedData, authKey, *authEntity.Header) + _, decrypted, err := eCrypto.DecryptChaChaBase64Auth(*authEntity.EncryptedData, authKey, *authEntity.Header) if err != nil { return nil, fmt.Errorf("failed to decrypt auth enityt %s: %v", authEntity.ID, err) }