Skip to content

Commit

Permalink
[cli] Handle decryption for new libsodium wrapper (#3374)
Browse files Browse the repository at this point in the history
## Description

## Tests
  • Loading branch information
ua741 authored Sep 21, 2024
2 parents 405c0c3 + f114938 commit 19eb1bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"
)

var AppVersion = "0.2.0"
var AppVersion = "0.2.1"

func main() {
cliDBPath, err := GetCLIConfigPath()
Expand Down
2 changes: 1 addition & 1 deletion cli/pkg/mapper/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 19eb1bd

Please sign in to comment.