Adding NCryptEncrypt sink

This commit is contained in:
REDMOND\brodes
2022-11-08 14:57:34 -05:00
parent 24382453c3
commit 60a67dce73

View File

@@ -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.