File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ private module Asymmetric {
95
95
algorithm .matches ( "sec%" ) and // specification such as "secp256r1"
96
96
result = algorithm .regexpCapture ( "sec[p|t](\\d+)[a-zA-Z].*" , 1 ) .toInt ( )
97
97
or
98
- algorithm .matches ( "X9.62%" ) and //specification such as "X9.62 prime192v2"
98
+ algorithm .matches ( "X9.62%" ) and // specification such as "X9.62 prime192v2"
99
99
result = algorithm .regexpCapture ( "X9\\.62 .*[a-zA-Z](\\d+)[a-zA-Z].*" , 1 ) .toInt ( )
100
100
or
101
- ( algorithm .matches ( "prime%" ) or algorithm . matches ( "c2tnb%" ) ) and //specification such as "prime192v2"
101
+ algorithm .matches ( [ "prime%" , "c2tnb%" ] ) and // specification such as "prime192v2"
102
102
result = algorithm .regexpCapture ( ".*[a-zA-Z](\\d+)[a-zA-Z].*" , 1 ) .toInt ( )
103
103
}
104
104
You can’t perform that action at this time.
0 commit comments