Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

java.security.GeneralSecurityException: cannot verify signature #716

Closed
kevinnguyen8699 opened this issue Aug 28, 2023 · 1 comment
Closed

Comments

@kevinnguyen8699
Copy link

Hi everyone!
I am on a ticket to decrypt google pay token. I used tink library and followed google documentation, but I always get cannot verify signature error.

at com.google.crypto.tink.apps.paymentmethodtoken.PaymentMethodTokenRecipient.verify(PaymentMethodTokenRecipient.java:486) at com.google.crypto.tink.apps.paymentmethodtoken.PaymentMethodTokenRecipient.verifyECV2(PaymentMethodTokenRecipient.java:419) at com.google.crypto.tink.apps.paymentmethodtoken.PaymentMethodTokenRecipient.unsealECV2(PaymentMethodTokenRecipient.java:378) at com.google.crypto.tink.apps.paymentmethodtoken.PaymentMethodTokenRecipient.unseal(PaymentMethodTokenRecipient.java:352) at com.google.crypto.tink.apps.paymentmethodtoken.Main.main(Main.java:19)

However, if I ignore the verification(https://github.com/tink-crypto/tink-java-apps/blob/main/paymentmethodtoken/src/main/java/com/google/crypto/tink/apps/paymentmethodtoken/PaymentMethodTokenRecipient.java#L409) it will successfully decrypt. Does anyone know what these errors mean?

@jerrwy
Copy link

jerrwy commented Dec 27, 2023

@kevinnguyen8699 hi, kevin. Can you tell me how you eventually resolved it?

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

No branches or pull requests

2 participants