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

OpenSSL 3.1 decryption issue #140

Open
RaminRad111 opened this issue Oct 25, 2023 · 0 comments
Open

OpenSSL 3.1 decryption issue #140

RaminRad111 opened this issue Oct 25, 2023 · 0 comments

Comments

@RaminRad111
Copy link

I'm not able to decrypt a jwe file with a RSA jwk key file. jose_jwe_dec function returns NULL.
I can do the same job with OpenSSL 1 but not with updated version.

p.s. I added legacy providers like this:
#if OPENSSL_VERSION_NUMBER >= 0x30000000
OSSL_PROVIDER *provider = OSSL_PROVIDER_load(NULL, "legacy");
if (!provider) {
fprintf(stderr, "Failed to load the legacy provider\n");
}
#endif
.........
#if OPENSSL_VERSION_NUMBER >= 0x30000000
printf("Unloading OpenSSL Legacy Provider\n");
if (provider) {
OSSL_PROVIDER_unload(provider);
}
#endif

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