File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -171,21 +171,22 @@ private class SymmetricKeyGenerator extends AlgoGeneratorObject instanceof Javax
171
171
override Expr getAlgoSpec ( ) { result = JavaxCryptoKeyGenerator .super .getAlgoSpec ( ) }
172
172
}
173
173
174
- /** An instance of an algorithm specification. */
175
- abstract private class AlgoSpec extends ClassInstanceExpr {
176
- Argument getKeySizeArg ( ) { result = this .getArgument ( 0 ) }
177
- }
178
-
179
174
/** An instance of an RSA, DSA, or DH algorithm specification. */
180
- private class AsymmetricNonEcSpec extends AlgoSpec {
175
+ private class AsymmetricNonEcSpec extends ClassInstanceExpr {
181
176
AsymmetricNonEcSpec ( ) {
182
177
this .getConstructedType ( ) instanceof RsaKeyGenParameterSpec or
183
178
this .getConstructedType ( ) instanceof DsaGenParameterSpec or
184
179
this .getConstructedType ( ) instanceof DhGenParameterSpec
185
180
}
181
+
182
+ /** Gets the `keysize` argument of this instance. */
183
+ Argument getKeySizeArg ( ) { result = this .getArgument ( 0 ) }
186
184
}
187
185
188
186
/** An instance of an elliptic curve (EC) algorithm specification. */
189
- private class AsymmetricEcSpec extends AlgoSpec {
187
+ private class AsymmetricEcSpec extends ClassInstanceExpr {
190
188
AsymmetricEcSpec ( ) { this .getConstructedType ( ) instanceof EcGenParameterSpec }
189
+
190
+ /** Gets the `keysize` argument of this instance. */
191
+ Argument getKeySizeArg ( ) { result = this .getArgument ( 0 ) }
191
192
}
You can’t perform that action at this time.
0 commit comments