Crypto: Bug fix in output model

This commit is contained in:
REDMOND\brodes
2025-06-25 15:25:51 -04:00
parent 8280cbcaa1
commit 7477471bc5

View File

@@ -181,7 +181,7 @@ class EvpCipherCall extends EvpCipherOperationFinalStep {
}
override DataFlow::Node getOutput(IOType type) {
super.getInput(type) = result
super.getOutput(type) = result
or
result.asExpr() = this.getArgument(1) and type = CiphertextIO()
}
@@ -199,7 +199,7 @@ class EvpCipherFinalCall extends EvpCipherOperationFinalStep {
}
override DataFlow::Node getOutput(IOType type) {
super.getInput(type) = result
super.getOutput(type) = result
or
result.asDefiningArgument() = this.getArgument(1) and
type = CiphertextIO()
@@ -224,7 +224,7 @@ class EvpPKeyCipherOperation extends EvpCipherOperationFinalStep {
}
override DataFlow::Node getOutput(IOType type) {
super.getInput(type) = result
super.getOutput(type) = result
or
result.asExpr() = this.getArgument(1) and type = CiphertextIO()
// TODO: could indicate text lengths here, as well