Merge pull request #19880 from bdrodes/operation_step_refactor

Crypto: Refactor OpenSSL operation step data-flow logic
This commit is contained in:
Nicolas Will
2025-06-27 17:19:11 +02:00
committed by GitHub
19 changed files with 1598 additions and 1214 deletions

View File

@@ -1031,7 +1031,7 @@ module JCAModel {
KeyGeneratorGetInstanceCall getInstantiationCall() { result = instantiationCall }
}
// TODO: Link getAlgorithm from KeyPairGenerator to algorithm instances or AVCs? High priority.
//TODO: Link getAlgorithm from KeyPairGenerator to algorithm instances or AVCs? High priority.
class KeyGeneratorGetInstanceCall extends MethodCall {
KeyGeneratorGetInstanceCall() {
this.getCallee().hasQualifiedName("javax.crypto", "KeyGenerator", "getInstance")
@@ -1106,6 +1106,10 @@ module JCAModel {
}
override int getKeySizeFixed() { none() }
override Crypto::ConsumerInputDataFlowNode getKeyValueConsumer() { none() }
override predicate hasKeyValueConsumer() { none() }
}
class KeyGeneratorCipherAlgorithm extends CipherStringLiteralAlgorithmInstance {