Skip to content

Commit 92dac03

Browse files
committed
Crypto: Adding necessary model interfaces for MacOperationCall in JCA.
1 parent 74ce7cd commit 92dac03

File tree

1 file changed

+12
-0
lines changed
  • java/ql/lib/experimental/quantum

1 file changed

+12
-0
lines changed

java/ql/lib/experimental/quantum/JCA.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,18 @@ module JCAModel {
15811581
result.asExpr() = super.getArgument(0) and
15821582
super.getMethod().getParameterType(0).hasName("byte[]")
15831583
}
1584+
1585+
override Crypto::ArtifactOutputDataFlowNode getOutputArtifact() { result.asExpr() = output }
1586+
1587+
override Crypto::AlgorithmValueConsumer getHashAlgorithmValueConsumer() { none() }
1588+
1589+
override predicate hasHashAlgorithmConsumer() { none() }
1590+
1591+
override Crypto::KeyOperationSubtype getKeyOperationSubtype() {
1592+
result instanceof Crypto::TMacMode
1593+
}
1594+
1595+
override Crypto::ConsumerInputDataFlowNode getNonceConsumer() { none() }
15841596
}
15851597

15861598
/*

0 commit comments

Comments
 (0)