mirror of
https://github.com/github/codeql.git
synced 2026-02-15 14:33:40 +01:00
Adding NCryptEncrypt sink
This commit is contained in:
@@ -80,6 +80,21 @@ class BCryptEncryptArgumentSink extends BCryptOpenAlgorithmProviderSink {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Argument at index 0 of call to NCryptEncrypt:
|
||||
* [in] NCRYPT_KEY_HANDLE hKey,
|
||||
*/
|
||||
class NCryptEncryptArgumentSink extends BCryptOpenAlgorithmProviderSink {
|
||||
int index;
|
||||
string funcName;
|
||||
|
||||
NCryptEncryptArgumentSink() {
|
||||
index = 0 and
|
||||
funcName = "NCryptEncrypt" and
|
||||
isCallArgument(funcName, this.asExpr(), index)
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------- Default SOURCES -----------------------
|
||||
/**
|
||||
* A string identifier of known PQC vulnerable algorithms.
|
||||
|
||||
Reference in New Issue
Block a user