Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virgil Decrypt Issue #75

Open
AshirShaikh99 opened this issue Jan 2, 2023 · 3 comments
Open

Virgil Decrypt Issue #75

AshirShaikh99 opened this issue Jan 2, 2023 · 3 comments

Comments

@AshirShaikh99
Copy link

Bug Description

I am facing this issue when the data is received and sent so it is not decrypted so here are the terminal logs mentioned below.

PlatformException(decrypt-failed, The operation couldn’t be completed. (VirgilCryptoFoundation.FoundationError error -303.), unknown error, null)

Expected behavior
I want to decrypt the messages which I received and sent so they can be viewed in the view.

Screenshots
img

If you see the screenshot the messages are not decrypted and due to that, they are not viewed on the screen.

Devices Information

  • Device: iPhone 14 Pro, iPhone 13, iPhone 13 mini
  • Simulators: iPhone 14 Pro, iPhone 14 Pro Max
  • OS: IOS 16.2 and macOS Ventura
  • E3Kit Version

pic

Additional context
On the receiver and sender end, the messages are not decrypted, and due to that, they are not appearing in the view!

@AshirShaikh99
Copy link
Author

Any update on it?

@behrad-kzm
Copy link

behrad-kzm commented Jun 25, 2023

I get the same error in this situation:
Screenshot 2023-06-25 at 8 38 39 PM
as you can see userCards and localPrivateKey loaded successfully.

the user registered with a device, I called backend private key and everything was ok.
but when the same user login on new device. recipient messages will fail on decrypt and returns errorKeyRecipientIsNotFound error.
Screenshot 2023-06-25 at 8 44 31 PM

why the decrypt method returns error?

this is the code I used to decrypt messages:

if let sender = sender, let userCard = VirgilClient.userCards[sender] {

       return  try eThree.authDecrypt(text: text, from: userCard)
       
}

I think I doesn't make any sense and maybe its a bug if I'm not doing something wrong.

@sepehrafla
Copy link

I got the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants