Skip to content

Commit dbd66e6

Browse files
committed
Fixing bug in JCA cipher modeling. intermediate operations should not be key operations.
1 parent 34f5e4e commit dbd66e6

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ module JCAModel {
611611
}
612612

613613
class CipherOperationInstance extends Crypto::KeyOperationInstance instanceof CipherOperationCall {
614+
CipherOperationInstance() { not this.isIntermediate() }
615+
614616
override Crypto::KeyOperationSubtype getKeyOperationSubtype() {
615617
if CipherFlowAnalysisImpl::hasInit(this)
616618
then result = CipherFlowAnalysisImpl::getInitFromUse(this, _, _).getCipherOperationModeType()

0 commit comments

Comments
 (0)