Skip to content

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

@gminky019

Description

@gminky019

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions