mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
remove KeyGenInitMethodAccess class
This commit is contained in:
@@ -119,26 +119,26 @@ private class SymmetricSink extends InsufficientKeySizeSink {
|
|||||||
override predicate hasState(DataFlow::FlowState state) { state = getMinSymKeySize().toString() }
|
override predicate hasState(DataFlow::FlowState state) { state = getMinSymKeySize().toString() }
|
||||||
}
|
}
|
||||||
|
|
||||||
/** A call to a method that initializes a key generator. */
|
|
||||||
abstract private class KeyGenInitMethodAccess extends MethodAccess {
|
|
||||||
/** Gets the `keysize` argument of this call. */
|
|
||||||
Argument getKeySizeArg() { result = this.getArgument(0) }
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A call to the `initialize` method declared in `java.security.KeyPairGenerator`
|
* A call to the `initialize` method declared in `java.security.KeyPairGenerator`
|
||||||
* or to the `init` method declared in `java.security.AlgorithmParameterGenerator`.
|
* or to the `init` method declared in `java.security.AlgorithmParameterGenerator`.
|
||||||
*/
|
*/
|
||||||
private class AsymmetricInitMethodAccess extends KeyGenInitMethodAccess {
|
private class AsymmetricInitMethodAccess extends MethodAccess {
|
||||||
AsymmetricInitMethodAccess() {
|
AsymmetricInitMethodAccess() {
|
||||||
this.getMethod() instanceof KeyPairGeneratorInitMethod or
|
this.getMethod() instanceof KeyPairGeneratorInitMethod or
|
||||||
this.getMethod() instanceof AlgoParamGeneratorInitMethod
|
this.getMethod() instanceof AlgoParamGeneratorInitMethod
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Gets the `keysize` argument of this call. */
|
||||||
|
Argument getKeySizeArg() { result = this.getArgument(0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/** A call to the `init` method declared in `javax.crypto.KeyGenerator`. */
|
/** A call to the `init` method declared in `javax.crypto.KeyGenerator`. */
|
||||||
private class SymmetricInitMethodAccess extends KeyGenInitMethodAccess {
|
private class SymmetricInitMethodAccess extends MethodAccess {
|
||||||
SymmetricInitMethodAccess() { this.getMethod() instanceof KeyGeneratorInitMethod }
|
SymmetricInitMethodAccess() { this.getMethod() instanceof KeyGeneratorInitMethod }
|
||||||
|
|
||||||
|
/** Gets the `keysize` argument of this call. */
|
||||||
|
Argument getKeySizeArg() { result = this.getArgument(0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/** An instance of a generator that specifies an encryption algorithm. */
|
/** An instance of a generator that specifies an encryption algorithm. */
|
||||||
|
|||||||
Reference in New Issue
Block a user