tlsfuzzer/tlslite-ng

View on GitHub

Showing 324 of 1,708 total issues

Consider simplifying this complex logical expression.
Open

                if self.public_key == other.public_key and\
                   self.min_generation == other.min_generation and\
                   self.generation == other.generation and\
                   self.expiration == other.expiration and\
                   self.target_hash == other.target_hash and\
Severity: Major
Found in tlslite/extensions.py - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                if hasattr(other, 'public_key') and\
                        hasattr(other, 'min_generation') and\
                        hasattr(other, 'generation') and\
                        hasattr(other, 'expiration') and\
                        hasattr(other, 'target_hash') and\
    Severity: Major
    Found in tlslite/extensions.py - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                      if not session and \
                              (not ticket_ext or ticket_ext and not ticket_ext.ticket)\
                              and sessionCache and clientHello.session_id:
                          # Session ID resumption is allowed only if the client
                          # didn't send a ticket
      Severity: Major
      Found in tlslite/tlsconnection.py - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                if cipherSuite in CipherSuite.srpAllSuites:
                    for result in self._serverSRPKeyExchange(clientHello, serverHello,
                                                             verifierDB, cipherSuite,
                                                             privateKey, cert_chain,
                                                             settings):
        Severity: Major
        Found in tlslite/tlsconnection.py - About 40 mins to fix

          Function verify has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def verify(self, sigBytes, bytes, padding=None, hashAlg=None,
          Severity: Minor
          Found in tlslite/utils/ecdsakey.py - About 35 mins to fix

            Function verify_binder has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def verify_binder(client_hello, handshake_hashes, position, secret, prf,
            Severity: Minor
            Found in tlslite/handshakehelpers.py - About 35 mins to fix

              Function EMSA_PSS_verify has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def EMSA_PSS_verify(self, mHash, EM, emBits, hAlg, sLen=0):
              Severity: Minor
              Found in tlslite/utils/rsakey.py - About 35 mins to fix

                Function _create_public_dsa_key has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def _create_public_dsa_key(p, q, g, y,
                Severity: Minor
                Found in tlslite/utils/keyfactory.py - About 35 mins to fix

                  Function hashAndVerify has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def hashAndVerify(self, sig_bytes, data, rsaScheme=None, hAlg=None,
                  Severity: Minor
                  Found in tlslite/utils/eddsakey.py - About 35 mins to fix

                    Function verify has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def verify(self, signature, hashData, padding=None, hashAlg=None,
                    Severity: Minor
                    Found in tlslite/utils/python_dsakey.py - About 35 mins to fix

                      Function hashAndVerify has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def hashAndVerify(self, sigBytes, bytes, rsaScheme=None, hAlg='sha1',
                      Severity: Minor
                      Found in tlslite/utils/ecdsakey.py - About 35 mins to fix

                        Function _replicate_value has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def _replicate_value(table, i, step, end, code):
                        Severity: Minor
                        Found in tlslite/utils/brotlidecpy/huffman.py - About 35 mins to fix

                          Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def __init__(self, elemLength, lengthLength, fieldName, extType,
                          Severity: Minor
                          Found in tlslite/extensions.py - About 35 mins to fix

                            Function brotli_build_huffman_table has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            def brotli_build_huffman_table(
                            Severity: Minor
                            Found in tlslite/utils/brotlidecpy/huffman.py - About 35 mins to fix

                              Function parsePEMKey has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def parsePEMKey(s, private=False, public=False, passwordCallback=None,
                              Severity: Minor
                              Found in tlslite/utils/keyfactory.py - About 35 mins to fix

                                Function _calcPendingStates has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def _calcPendingStates(self, cipherSuite, masterSecret,
                                Severity: Minor
                                Found in tlslite/tlsrecordlayer.py - About 35 mins to fix

                                  Function _x25519_generic has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def _x25519_generic(k, u, bits, a24, p):
                                  Severity: Minor
                                  Found in tlslite/utils/x25519.py - About 35 mins to fix

                                    Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def __init__(self, server=False, extType=None, encExt=False,
                                    Severity: Minor
                                    Found in tlslite/extensions.py - About 35 mins to fix

                                      Function verify has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def verify(self, sigBytes, bytes, padding='pkcs1', hashAlg=None,
                                      Severity: Minor
                                      Found in tlslite/utils/rsakey.py - About 35 mins to fix

                                        Function verify has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def verify(self, sigBytes, bytes, padding=None, hashAlg=None,
                                        Severity: Minor
                                        Found in tlslite/utils/eddsakey.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language