Skip to content

EVP_PKEY_private_check does not seem to work when no private key params are set #114

@sushshring

Description

@sushshring

********* STEPS ***********

  • Create OSSL_PARAM_BLD_new() and push exponent and modulus BN params ONLY.
  • Create an EVP_PKEY using EVP_PKEY_fromdata(...) and pass it params created using OSSL_PARAM_BLD_to_param(...).
  • Call EVP_PKEY_private_check()

Expected behavior: EVP_PKEY_private_check should return an error.
Actual: EVP_PKEY_private_check returns 1 (success).

OpenSSL version: 3.5.0
SymCrypt provider version: default from AzureLinux3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions