-
Notifications
You must be signed in to change notification settings - Fork 186
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
AesKeyWrap integrity check failed for A256KW for alg #202
Comments
Hi @cupatil are you facing any error? :) Nothing mentioned in a ticket. And typically you want |
Hi @dvsekhvalnov , In both ways I am getting AesKeyWrap integrity check failed error. I am trying to write equivalent code in c# using this lib. Below are the java code
Can you please suggest? Above code was written with Jose4J. |
Looks like you only need var decrypted = Jose.JWT.Decode(integrityToken, decryptionKey)
var payload = Jose.JWT.Decode(decrypted, verificationKey) AesKeyWrap integrity check failed - usually means you messed up keys. If you have example token and key, feel free to share, i can try to run myself. (Please don't share real keys). |
Hi @dvsekhvalnov, Now I am trying to convert base64 encoded verification key to EC (ES256) public key using JWK can you please suggest how this is possible through this lib. Please suggest. In java below code works to generate the key:
Thanks in advance. |
@cupatil, what's inside your base64 encoded key? Is it just PEM key? or JWK? If you can post base64 url string - will help greatly to understand issue :) |
@dvsekhvalnov The key is provided from the play console Its base64OfEncodedVerificationKey Here is the sample key: I need to generate ECC key from this. I have tried some manual approach mentioned below.
It works for me. Can you please suggest is it the write way to do? |
Can you post full base64 string? can't decode and check what's inside.
|
Is your verification key string after Base64 decode starts with |
Hi @dvsekhvalnov , I am facing same type of issue when I implement Play Integrity in my Android app. |
Hey @Jitendran , Would suggest to open separate issue and add details. |
Hi @dvsekhvalnov Thanks for your reply ... |
Hi :) You can decode the Google Attestation Statement in the following way in C#
|
Hi @dishanphilips Thanks for your reply, we are testing the on the app which was not live in PlayStore, but we upload the app on PlayStore after that we are not facing this issue now. |
What will be used in place of ATTESTATION STATEMENT ? |
The attestation statement that you received from the google play integrity api. Looking at you code above that would be : |
Hi @dvsekhvalnov,
I am trying to decrypt the play integrity token using this lib. The JWE uses A256KW for [alg] and A256GCM for [enc]
below are the code I am trying to execute and it throws the AesKeyWrap integrity check failed error
Please let me know if I am doing something wrong here.
The text was updated successfully, but these errors were encountered: