Fixing bug in JCA cipher modeling. intermediate operations should not be key operations.

This commit is contained in:
REDMOND\brodes
2025-05-16 11:23:42 -04:00
parent 34f5e4e0c8
commit dbd66e64c6

View File

@@ -611,6 +611,8 @@ module JCAModel {
}
class CipherOperationInstance extends Crypto::KeyOperationInstance instanceof CipherOperationCall {
CipherOperationInstance() { not this.isIntermediate() }
override Crypto::KeyOperationSubtype getKeyOperationSubtype() {
if CipherFlowAnalysisImpl::hasInit(this)
then result = CipherFlowAnalysisImpl::getInitFromUse(this, _, _).getCipherOperationModeType()