Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#114 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Start by reproducing the issue with OSSL_PARAM_BLD_new(), EVP_PKEY_fromdata(), and EVP_PKEY_private_check() using only exponent and modulus parameters. Trace how the SymCrypt provider handles the resulting key during private_check; done means the incomplete key is rejected with an error rather than returning success.

Written by the indexing model from the issue text.

Description

********* 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.

Dominant language
C
Stars
81
Forks
16
Avg merge
22h 34m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/SymCrypt-OpenSSL

All issues in microsoft/SymCrypt-OpenSSL

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.