[cli] Handle decryption for new libsodium wrapper

This commit is contained in:
Neeraj Gupta
2024-09-21 06:50:33 +05:30
parent fa7c417e69
commit f11493842e
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ import (
"strings"
)
var AppVersion = "0.2.0"
var AppVersion = "0.2.1"
func main() {
cliDBPath, err := GetCLIConfigPath()

View File

@@ -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)
}