We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a67dc commit 59ca3b2Copy full SHA for 59ca3b2
1 file changed
cpp/ql/src/experimental/campaigns/nccoe-pqc-migration/QuantumVulnerableDiscovery/WinCng/WindowsCng.qll
@@ -95,6 +95,22 @@ class NCryptEncryptArgumentSink extends BCryptOpenAlgorithmProviderSink {
95
}
96
97
98
+
99
+/**
100
+ * Argument at index 1 of call to NCryptEncrypt:
101
+ * _Inout_ NCRYPT_KEY_HANDLE hKey,
102
+ */
103
+class SslEncryptPacketArgumentSink extends BCryptOpenAlgorithmProviderSink {
104
+ int index;
105
+ string funcName;
106
107
+ SslEncryptPacketArgumentSink() {
108
+ index = 1 and
109
+ funcName = "SslEncryptPacket" and
110
+ isCallArgument(funcName, this.asExpr(), index)
111
+ }
112
+}
113
114
// ----------------- Default SOURCES -----------------------
115
/**
116
* A string identifier of known PQC vulnerable algorithms.
0 commit comments