File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -119,26 +119,26 @@ private class SymmetricSink extends InsufficientKeySizeSink {
119
119
override predicate hasState ( DataFlow:: FlowState state ) { state = getMinSymKeySize ( ) .toString ( ) }
120
120
}
121
121
122
- /** A call to a method that initializes a key generator. */
123
- abstract private class KeyGenInitMethodAccess extends MethodAccess {
124
- /** Gets the `keysize` argument of this call. */
125
- Argument getKeySizeArg ( ) { result = this .getArgument ( 0 ) }
126
- }
127
-
128
122
/**
129
123
* A call to the `initialize` method declared in `java.security.KeyPairGenerator`
130
124
* or to the `init` method declared in `java.security.AlgorithmParameterGenerator`.
131
125
*/
132
- private class AsymmetricInitMethodAccess extends KeyGenInitMethodAccess {
126
+ private class AsymmetricInitMethodAccess extends MethodAccess {
133
127
AsymmetricInitMethodAccess ( ) {
134
128
this .getMethod ( ) instanceof KeyPairGeneratorInitMethod or
135
129
this .getMethod ( ) instanceof AlgoParamGeneratorInitMethod
136
130
}
131
+
132
+ /** Gets the `keysize` argument of this call. */
133
+ Argument getKeySizeArg ( ) { result = this .getArgument ( 0 ) }
137
134
}
138
135
139
136
/** A call to the `init` method declared in `javax.crypto.KeyGenerator`. */
140
- private class SymmetricInitMethodAccess extends KeyGenInitMethodAccess {
137
+ private class SymmetricInitMethodAccess extends MethodAccess {
141
138
SymmetricInitMethodAccess ( ) { this .getMethod ( ) instanceof KeyGeneratorInitMethod }
139
+
140
+ /** Gets the `keysize` argument of this call. */
141
+ Argument getKeySizeArg ( ) { result = this .getArgument ( 0 ) }
142
142
}
143
143
144
144
/** An instance of a generator that specifies an encryption algorithm. */
You can’t perform that action at this time.
0 commit comments