Skip to content

Commit 7477471

Browse files
committed
Crypto: Bug fix in output model
1 parent 8280cbc commit 7477471

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/lib/experimental/quantum/OpenSSL/Operations/CipherOperation.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class EvpCipherCall extends EvpCipherOperationFinalStep {
181181
}
182182

183183
override DataFlow::Node getOutput(IOType type) {
184-
super.getInput(type) = result
184+
super.getOutput(type) = result
185185
or
186186
result.asExpr() = this.getArgument(1) and type = CiphertextIO()
187187
}
@@ -199,7 +199,7 @@ class EvpCipherFinalCall extends EvpCipherOperationFinalStep {
199199
}
200200

201201
override DataFlow::Node getOutput(IOType type) {
202-
super.getInput(type) = result
202+
super.getOutput(type) = result
203203
or
204204
result.asDefiningArgument() = this.getArgument(1) and
205205
type = CiphertextIO()
@@ -224,7 +224,7 @@ class EvpPKeyCipherOperation extends EvpCipherOperationFinalStep {
224224
}
225225

226226
override DataFlow::Node getOutput(IOType type) {
227-
super.getInput(type) = result
227+
super.getOutput(type) = result
228228
or
229229
result.asExpr() = this.getArgument(1) and type = CiphertextIO()
230230
// TODO: could indicate text lengths here, as well

0 commit comments

Comments
 (0)