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 9fb94d8 commit 60532e6Copy full SHA for 60532e6
cpp/ql/src/Security/CWE/CWE-326/InsufficientKeySize.ql
@@ -32,9 +32,10 @@ class KeyStrengthFlow extends DataFlow::Configuration {
32
33
override predicate isSource(DataFlow::Node node) {
34
exists(int bits |
35
- node.asInstruction().(IntegerConstantInstruction).getValue().toInt() = bits and
36
- bits < getMinimumKeyStrength(_, _) and
37
- bits > 0 // exclude sentinel values
+ node.asInstruction().(IntegerConstantInstruction).getValue().toInt() = bits and
+ bits < getMinimumKeyStrength(_, _) and
+ bits > 0 // exclude sentinel values
38
+ )
39
}
40
41
override predicate isSink(DataFlow::Node node) {
0 commit comments