Allow NonKeyCiphers to include truncated SHA-512 MDs in Forge JS library.

This commit is contained in:
smiddy007
2023-04-13 23:16:20 -04:00
parent 15d5ad7a66
commit ec97cdc8a0
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
category: minorAnalysis
---
* The Forge module in `CryptoLibraries.qll` now correctly classifies SHA-512/224,
* SHA-512/256, and SHA-512/384 hashes used in message digests as NonKeyCiphers.

View File

@@ -627,6 +627,10 @@ private module Forge {
// require("forge").md.md5.create().update('The quick brown fox jumps over the lazy dog');
this =
getAnImportNode().getMember("md").getMember(algorithmName).getMember("create").getACall()
or
// require("forge").sha512.sha256.create().update('The quick brown fox jumps over the lazy dog');
this =
getAnImportNode().getMember("md").getMember(algorithmName).getAMember().getMember("create").getACall()
)
}