Crypto: Code review cleanup.

This commit is contained in:
REDMOND\brodes
2025-06-16 09:22:11 -04:00
parent 1882db7d86
commit 45fa2c94da
10 changed files with 15 additions and 25 deletions

View File

@@ -12,9 +12,6 @@ private import experimental.quantum.OpenSSL.AlgorithmValueConsumers.OpenSSLAlgor
*/
class DirectAlgorithmValueConsumer extends OpenSSLAlgorithmValueConsumer instanceof OpenSSLAlgorithmCall
{
DataFlow::Node resultNode;
Expr resultExpr;
/**
* These cases take in no explicit value (the value is implicit)
*/

View File

@@ -28,7 +28,7 @@ class EVP_Q_Digest_Algorithm_Consumer extends HashAlgorithmValueConsumer {
}
/**
* Instances from https://docs.openssl.org/3.0/man3/EVP_PKEY_CTX_ctrl/
* An instance from https://docs.openssl.org/3.0/man3/EVP_PKEY_CTX_ctrl/
* where the digest is directly consumed by name.
* In these cases, the operation is not yet performed, but there is
* these functions are treated as 'initializers' and track the algorithm through
@@ -71,7 +71,7 @@ class EVPDigestAlgorithmValueConsumer extends HashAlgorithmValueConsumer {
] and
valueArgNode.asExpr() = this.(Call).getArgument(0)
or
this.(Call).getTarget().getName() in ["EVP_MD_fetch"] and
this.(Call).getTarget().getName() = "EVP_MD_fetch" and
valueArgNode.asExpr() = this.(Call).getArgument(1)
or
this.(Call).getTarget().getName() = "EVP_DigestSignInit_ex" and