Skip to content

Legacy RSA EVP_PKEY_METHOD does not support RSA_PKCS1_WITH_TLS_PADDING #16738

@mattcaswell

Description

@mattcaswell

The default/fips provider RSA implementations support a new padding mode called RSA_PKCS1_WITH_TLS_PADDING. This has not been added to the legacy RSA EVP_PKEY_METHOD. However libssl now requires this padding mode to be supported. This means that any custom EVP_PKEY_METHOD for RSA that an app creates that wraps the standard EVP_PKEY_METHOD (such as is done in OpenSSL's daysnc engine) cannot be used in libssl.

This is the cause of the "unsupported padding mode" errors seen by @beldmit in #16734.

Should we attempt to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 3.0Applies to openssl-3.0 branchbranch: 3.1Applies to openssl-3.1 (EOL)branch: 3.2Applies to openssl-3.2 (EOL)branch: masterApplies to master branchtriaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions