File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -55,16 +55,12 @@ Macro getAdditionalEvidenceMacro() {
5555/**
5656 * An enum constant which may relate to an insecure encryption algorithm.
5757 */
58- EnumConstant getAnInsecureEncryptionEnumConst ( ) {
59- isInsecureEncryption ( result .getName ( ) )
60- }
58+ EnumConstant getAnInsecureEncryptionEnumConst ( ) { isInsecureEncryption ( result .getName ( ) ) }
6159
6260/**
6361 * An enum constant with additional evidence it is related to encryption.
6462 */
65- EnumConstant getAdditionalEvidenceEnumConst ( ) {
66- isEncryptionAdditionalEvidence ( result .getName ( ) )
67- }
63+ EnumConstant getAdditionalEvidenceEnumConst ( ) { isEncryptionAdditionalEvidence ( result .getName ( ) ) }
6864
6965/**
7066 * A function call we have a high confidence is related to use of an insecure
@@ -111,14 +107,11 @@ class InsecureFunctionCall extends FunctionCall {
111107 )
112108 }
113109
114- Element getBlame ( ) {
115- result = blame
116- }
110+ Element getBlame ( ) { result = blame }
117111
118- string getDescription ( ) {
119- result = explain
120- }
112+ string getDescription ( ) { result = explain }
121113}
122114
123115from InsecureFunctionCall c
124- select c .getBlame ( ) , "This " + c .getDescription ( ) + " specifies a broken or weak cryptographic algorithm."
116+ select c .getBlame ( ) ,
117+ "This " + c .getDescription ( ) + " specifies a broken or weak cryptographic algorithm."
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ predicate isInsecureEncryption(string name) {
6060 not name .toUpperCase ( ) .regexpMatch ( ".*TRIPLE.*" )
6161}
6262
63- /**
63+ /**
6464 * Holds if there is additional evidence that `name` looks like it might be
6565 * related to operations with an encyption algorithm, besides the name of a
6666 * specific algorithm. This can be used in conjuction with
You can’t perform that action at this time.
0 commit comments