mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
remove separators
This commit is contained in:
@@ -15,7 +15,6 @@ abstract class InsufficientKeySizeSink extends DataFlow::Node {
|
|||||||
predicate hasState(DataFlow::FlowState state) { state instanceof DataFlow::FlowStateEmpty }
|
predicate hasState(DataFlow::FlowState state) { state instanceof DataFlow::FlowStateEmpty }
|
||||||
}
|
}
|
||||||
|
|
||||||
// *********************************** SOURCES ***********************************
|
|
||||||
/** A source for an insufficient key size used in RSA, DSA, and DH algorithms. */
|
/** A source for an insufficient key size used in RSA, DSA, and DH algorithms. */
|
||||||
private class AsymmetricNonEcSource extends InsufficientKeySizeSource {
|
private class AsymmetricNonEcSource extends InsufficientKeySizeSource {
|
||||||
AsymmetricNonEcSource() { getNodeIntValue(this) < getMinAsymNonEcKeySize() }
|
AsymmetricNonEcSource() { getNodeIntValue(this) < getMinAsymNonEcKeySize() }
|
||||||
@@ -46,7 +45,6 @@ private class SymmetricSource extends InsufficientKeySizeSource {
|
|||||||
override predicate hasState(DataFlow::FlowState state) { state = getMinSymKeySize().toString() }
|
override predicate hasState(DataFlow::FlowState state) { state = getMinSymKeySize().toString() }
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************** SOURCES HELPER PREDICATES **************************
|
|
||||||
/** Returns the minimum recommended key size for RSA, DSA, and DH algorithms. */
|
/** Returns the minimum recommended key size for RSA, DSA, and DH algorithms. */
|
||||||
private int getMinAsymNonEcKeySize() { result = 2048 }
|
private int getMinAsymNonEcKeySize() { result = 2048 }
|
||||||
|
|
||||||
@@ -74,7 +72,6 @@ private int getEcKeySize(string algorithm) {
|
|||||||
result = algorithm.regexpCapture(".*[a-zA-Z](\\d+)[a-zA-Z].*", 1).toInt()
|
result = algorithm.regexpCapture(".*[a-zA-Z](\\d+)[a-zA-Z].*", 1).toInt()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************ SINKS ************************************
|
|
||||||
/** A sink for an insufficient key size used in RSA, DSA, and DH algorithms. */
|
/** A sink for an insufficient key size used in RSA, DSA, and DH algorithms. */
|
||||||
private class AsymmetricNonEcSink extends InsufficientKeySizeSink {
|
private class AsymmetricNonEcSink extends InsufficientKeySizeSink {
|
||||||
AsymmetricNonEcSink() {
|
AsymmetricNonEcSink() {
|
||||||
@@ -122,7 +119,6 @@ private class SymmetricSink extends InsufficientKeySizeSink {
|
|||||||
override predicate hasState(DataFlow::FlowState state) { state = getMinSymKeySize().toString() }
|
override predicate hasState(DataFlow::FlowState state) { state = getMinSymKeySize().toString() }
|
||||||
}
|
}
|
||||||
|
|
||||||
// ********************** SINKS HELPER CLASSES & PREDICATES **********************
|
|
||||||
/** A call to a method that initializes a key generator. */
|
/** A call to a method that initializes a key generator. */
|
||||||
abstract private class KeyGenInitMethodAccess extends MethodAccess {
|
abstract private class KeyGenInitMethodAccess extends MethodAccess {
|
||||||
/** Gets the `keysize` argument of this call. */
|
/** Gets the `keysize` argument of this call. */
|
||||||
|
|||||||
Reference in New Issue
Block a user