Skip to content

Quantum: Model missing OpenSSL EVP digest consumers #19545

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

Merged

Conversation

bdrodes
Copy link
Contributor

@bdrodes bdrodes commented May 20, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 20, 2025 15:24
@bdrodes bdrodes requested a review from a team as a code owner May 20, 2025 15:24
@github-actions github-actions bot added the C++ label May 20, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new consumer class for EVP digest algorithm functions (e.g. EVP_get_digestbyname and EVP_MD_fetch).

  • Introduce EVPDigestAlgorithmValueConsumer to capture digest algorithm getters and hook them into the data flow model.
  • Set up input (valueArgNode) and result (resultNode) nodes for static analysis.
Comments suppressed due to low confidence (1)

cpp/ql/lib/experimental/quantum/OpenSSL/AlgorithmValueConsumers/HashAlgorithmValueConsumer.qll:38

  • There are no existing tests for this new consumer; consider adding unit tests to verify detection of EVP_get_digest* and EVP_MD_fetch calls and correct dataflow nodes.
class EVPDigestAlgorithmValueConsumer extends OpenSSLAlgorithmValueConsumer {

* EVP digest algorithm getters
* https://docs.openssl.org/3.0/man3/EVP_DigestInit/#synopsis
*/
class EVPDigestAlgorithmValueConsumer extends OpenSSLAlgorithmValueConsumer {

Check warning

Code scanning / CodeQL

Acronyms should be PascalCase/camelCase. Warning

Acronyms in EVPDigestAlgorithmValueConsumer should be PascalCase/camelCase.
@nicolaswill nicolaswill changed the title Crypto: Missing openssl EVP digest consumers. Quantum: Model missing OpenSSL EVP digest consumers May 21, 2025
@nicolaswill nicolaswill merged commit 9cc121f into github:main May 21, 2025
12 of 13 checks passed
@nicolaswill nicolaswill deleted the missing_openssl_hash_algorithm_consumers branch May 21, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants