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() {
55
55
/**
56
56
* An enum constant which may relate to an insecure encryption algorithm.
57
57
*/
58
- EnumConstant getAnInsecureEncryptionEnumConst ( ) {
59
- isInsecureEncryption ( result .getName ( ) )
60
- }
58
+ EnumConstant getAnInsecureEncryptionEnumConst ( ) { isInsecureEncryption ( result .getName ( ) ) }
61
59
62
60
/**
63
61
* An enum constant with additional evidence it is related to encryption.
64
62
*/
65
- EnumConstant getAdditionalEvidenceEnumConst ( ) {
66
- isEncryptionAdditionalEvidence ( result .getName ( ) )
67
- }
63
+ EnumConstant getAdditionalEvidenceEnumConst ( ) { isEncryptionAdditionalEvidence ( result .getName ( ) ) }
68
64
69
65
/**
70
66
* A function call we have a high confidence is related to use of an insecure
@@ -111,14 +107,11 @@ class InsecureFunctionCall extends FunctionCall {
111
107
)
112
108
}
113
109
114
- Element getBlame ( ) {
115
- result = blame
116
- }
110
+ Element getBlame ( ) { result = blame }
117
111
118
- string getDescription ( ) {
119
- result = explain
120
- }
112
+ string getDescription ( ) { result = explain }
121
113
}
122
114
123
115
from 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) {
60
60
not name .toUpperCase ( ) .regexpMatch ( ".*TRIPLE.*" )
61
61
}
62
62
63
- /**
63
+ /**
64
64
* Holds if there is additional evidence that `name` looks like it might be
65
65
* related to operations with an encyption algorithm, besides the name of a
66
66
* specific algorithm. This can be used in conjuction with
You can’t perform that action at this time.
0 commit comments