Skip to content

OpenSSL 3.1 decryption issue #140

@RaminRad111

Description

@RaminRad111

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions