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

JWE Block Decrypt: auth_data: couldnt set additional authenticated data #26

Open
gminky019 opened this issue Dec 20, 2023 · 0 comments
Open

Comments

@gminky019
Copy link

When decrypting a JWS payload inside of a JWT using EC keys I am having problems.

I have run into an error that says:

``auth_data=': couldn't set additional authenticated data (OpenSSL::Cipher::CipherError)`

Im not sure on how to proceed from this error. I am calling this using:

JOSE::JWE.block_decrypt(key, token).first

The key being a JWK converted from a PEM file.
The token is the encrypted payload used by decrypting the entire JWT and then grabbing the payload and passing it in.

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

1 participant