mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Crypto: Adding necessary model interfaces for MacOperationCall in JCA.
This commit is contained in:
@@ -1581,6 +1581,18 @@ module JCAModel {
|
|||||||
result.asExpr() = super.getArgument(0) and
|
result.asExpr() = super.getArgument(0) and
|
||||||
super.getMethod().getParameterType(0).hasName("byte[]")
|
super.getMethod().getParameterType(0).hasName("byte[]")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override Crypto::ArtifactOutputDataFlowNode getOutputArtifact() { result.asExpr() = output }
|
||||||
|
|
||||||
|
override Crypto::AlgorithmValueConsumer getHashAlgorithmValueConsumer() { none() }
|
||||||
|
|
||||||
|
override predicate hasHashAlgorithmConsumer() { none() }
|
||||||
|
|
||||||
|
override Crypto::KeyOperationSubtype getKeyOperationSubtype() {
|
||||||
|
result instanceof Crypto::TMacMode
|
||||||
|
}
|
||||||
|
|
||||||
|
override Crypto::ConsumerInputDataFlowNode getNonceConsumer() { none() }
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user