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 {
9595 algorithm .matches ( "sec%" ) and // specification such as "secp256r1"
9696 result = algorithm .regexpCapture ( "sec[p|t](\\d+)[a-zA-Z].*" , 1 ) .toInt ( )
9797 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"
9999 result = algorithm .regexpCapture ( "X9\\.62 .*[a-zA-Z](\\d+)[a-zA-Z].*" , 1 ) .toInt ( )
100100 or
101- ( algorithm .matches ( "prime%" ) or algorithm . matches ( "c2tnb%" ) ) and //specification such as "prime192v2"
101+ algorithm .matches ( [ "prime%" , "c2tnb%" ] ) and // specification such as "prime192v2"
102102 result = algorithm .regexpCapture ( ".*[a-zA-Z](\\d+)[a-zA-Z].*" , 1 ) .toInt ( )
103103 }
104104
You can’t perform that action at this time.
0 commit comments