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 4a06b81 commit 40530aeCopy full SHA for 40530ae
javascript/ql/lib/semmle/javascript/frameworks/CryptoLibraries.qll
@@ -321,10 +321,7 @@ private module CryptoJS {
321
*/
322
private API::Node getAlgorithmNode(CryptographicAlgorithm algorithm) {
323
exists(string algorithmName | algorithm.matchesName(algorithmName) |
324
- exists(API::Node mod | mod = API::moduleImport("crypto-js") |
325
- result = mod.getMember(algorithmName) or
326
- result = mod.getMember("Hmac" + algorithmName) // they prefix Hmac
327
- )
+ result = API::moduleImport("crypto-js").getMember([algorithmName, "Hmac" + algorithmName])
328
or
329
result = API::moduleImport("crypto-js/" + algorithmName)
330
)
0 commit comments