add ECC dataflow config; passes all test cases; still don't have algo name tracking

This commit is contained in:
Jami Cogswell
2022-10-06 01:32:10 -04:00
parent 5e2ef66014
commit c414ee0e25
4 changed files with 74 additions and 296 deletions

View File

@@ -9,9 +9,13 @@ class InsufficientKeySizeTest extends InlineExpectationsTest {
override predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasInsufficientKeySize" and
exists(Expr e, string msg | hasInsufficientKeySize(e, msg) |
e.getLocation() = location and
element = e.toString() and
exists(DataFlow::PathNode source, DataFlow::PathNode sink |
exists(AsymmetricKeyTrackingConfiguration config1 | config1.hasFlowPath(source, sink)) or
exists(AsymmetricECCKeyTrackingConfiguration config2 | config2.hasFlowPath(source, sink)) or
exists(SymmetricKeyTrackingConfiguration config2 | config2.hasFlowPath(source, sink))
|
sink.getNode().getLocation() = location and
element = sink.getNode().toString() and
value = ""
)
}