We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2438245 commit 60a67dcCopy full SHA for 60a67dc
cpp/ql/src/experimental/campaigns/nccoe-pqc-migration/QuantumVulnerableDiscovery/WinCng/WindowsCng.qll
@@ -80,6 +80,21 @@ class BCryptEncryptArgumentSink extends BCryptOpenAlgorithmProviderSink {
80
}
81
82
83
+/**
84
+ * Argument at index 0 of call to NCryptEncrypt:
85
+ * [in] NCRYPT_KEY_HANDLE hKey,
86
+ */
87
+class NCryptEncryptArgumentSink extends BCryptOpenAlgorithmProviderSink {
88
+ int index;
89
+ string funcName;
90
+
91
+ NCryptEncryptArgumentSink() {
92
+ index = 0 and
93
+ funcName = "NCryptEncrypt" and
94
+ isCallArgument(funcName, this.asExpr(), index)
95
+ }
96
+}
97
98
// ----------------- Default SOURCES -----------------------
99
/**
100
* A string identifier of known PQC vulnerable algorithms.
0 commit comments