tlsfuzzer/tlslite-ng

View on GitHub

Showing 1,734 of 1,734 total issues

Function _serverGetClientHello has a Cognitive Complexity of 601 (exceeds 5 allowed). Consider refactoring.
Open

def _serverGetClientHello(self, settings, private_key, cert_chain,
verifierDB,
sessionCache, anon, alpn, sni):
# Tentatively set version to most-desirable version, so if an error
# occurs parsing the ClientHello, this will be the version we'll use
Severity: Minor
Found in tlslite/tlsconnection.py - About 1 wk to fix

File tlsconnection.py has 4030 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Authors:
# Trevor Perrin
# Google - added reqCAs parameter
# Google (adapted by Sam Rushing and Marcelo Fernandez) - NPN support
# Google - FALLBACK_SCSV
Severity: Major
Found in tlslite/tlsconnection.py - About 1 wk to fix

    File messages.py has 2125 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # Authors:
    # Trevor Perrin
    # Google - handling CertificateRequest.certificate_types
    # Google (adapted by Sam Rushing and Marcelo Fernandez) - NPN support
    # Dimitris Moraitis - Anon ciphersuites
    Severity: Major
    Found in tlslite/messages.py - About 5 days to fix

      Cyclomatic complexity is too high in method _serverGetClientHello. (269)
      Open

      def _serverGetClientHello(self, settings, private_key, cert_chain,
      verifierDB,
      sessionCache, anon, alpn, sni):
      # Tentatively set version to most-desirable version, so if an error
      # occurs parsing the ClientHello, this will be the version we'll use
      Severity: Minor
      Found in tlslite/tlsconnection.py by radon

      File extensions.py has 1694 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # Copyright (c) 2014, 2015 Hubert Kario
      #
      # See the LICENSE file for legal information regarding use of this file.
       
      """ Helper package for handling TLS extensions encountered in ClientHello
      Severity: Major
      Found in tlslite/extensions.py - About 4 days to fix

        Function _getMsg has a Cognitive Complexity of 182 (exceeds 5 allowed). Consider refactoring.
        Open

        def _getMsg(self, expectedType, secondaryType=None, constructorType=None):
        try:
        if not isinstance(expectedType, tuple):
        expectedType = (expectedType,)
         
         
        Severity: Minor
        Found in tlslite/tlsrecordlayer.py - About 3 days to fix

        File constants.py has 1358 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # Authors:
        # Trevor Perrin
        # Google - defining ClientCertificateType
        # Google (adapted by Sam Rushing) - NPN support
        # Dimitris Moraitis - Anon ciphersuites
        Severity: Major
        Found in tlslite/constants.py - About 3 days to fix

          Function _serverTLS13Handshake has a Cognitive Complexity of 151 (exceeds 5 allowed). Consider refactoring.
          Open

          def _serverTLS13Handshake(self, settings, clientHello, cipherSuite,
          privateKey, serverCertChain, version, scheme,
          srv_alpns, reqCert):
          """Perform a TLS 1.3 handshake"""
          prf_name, prf_size = self._getPRFParams(cipherSuite)
          Severity: Minor
          Found in tlslite/tlsconnection.py - About 3 days to fix

          File tlsrecordlayer.py has 1163 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # Authors:
          # Trevor Perrin
          # Google (adapted by Sam Rushing) - NPN support
          # Google - minimal padding
          # Martin von Loewis - python 3 port
          Severity: Major
          Found in tlslite/tlsrecordlayer.py - About 2 days to fix

            Function _clientTLS13Handshake has a Cognitive Complexity of 143 (exceeds 5 allowed). Consider refactoring.
            Open

            def _clientTLS13Handshake(self, settings, session, clientHello,
            clientCertChain, privateKey, serverHello):
            """Perform TLS 1.3 handshake as a client."""
            prfName, prf_size = self._getPRFParams(serverHello.cipher_suite)
             
             
            Severity: Minor
            Found in tlslite/tlsconnection.py - About 2 days to fix

            Function _clientGetServerHello has a Cognitive Complexity of 141 (exceeds 5 allowed). Consider refactoring.
            Open

            def _clientGetServerHello(self, settings, session, clientHello):
            client_hello_hash = self._handshake_hash.copy()
            for result in self._getMsg(ContentType.handshake,
            HandshakeType.server_hello):
            if result in (0,1): yield result
            Severity: Minor
            Found in tlslite/tlsconnection.py - About 2 days to fix

            Function _handshakeServerAsyncHelper has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring.
            Open

            def _handshakeServerAsyncHelper(self, verifierDB,
            cert_chain, privateKey, reqCert,
            sessionCache, settings, reqCAs, tacks,
            activationFlags, nextProtos, anon, alpn,
            sni):
            Severity: Minor
            Found in tlslite/tlsconnection.py - About 2 days to fix

            File keyexchange.py has 1053 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # Authors:
            # Hubert Kario (2015)
            #
            # See the LICENSE file for legal information regarding use of this file.
            """Handling of cryptographic operations for key exchange"""
            Severity: Major
            Found in tlslite/keyexchange.py - About 2 days to fix

              File recordlayer.py has 1047 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # Copyright (c) 2014, Hubert Kario
              #
              # See the LICENSE file for legal information regarding use of this file.
               
              """Implementation of the TLS Record Layer protocol"""
              Severity: Major
              Found in tlslite/recordlayer.py - About 2 days to fix

                File rijndael.py has 1029 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # Authors:
                # Bram Cohen
                # Trevor Perrin - various changes
                #
                # See the LICENSE file for legal information regarding use of this file.
                Severity: Major
                Found in tlslite/utils/rijndael.py - About 2 days to fix

                  Function _serverCertKeyExchange has a Cognitive Complexity of 122 (exceeds 5 allowed). Consider refactoring.
                  Open

                  def _serverCertKeyExchange(self, clientHello, serverHello, sigHashAlg,
                  serverCertChain, keyExchange,
                  reqCert, reqCAs, cipherSuite,
                  settings):
                  #Send ServerHello, Certificate or Compressed Certificate
                  Severity: Minor
                  Found in tlslite/tlsconnection.py - About 2 days to fix

                  Similar blocks of code found in 14 locations. Consider refactoring.
                  Open

                  T2 = (0xa5c66363, 0x84f87c7c, 0x99ee7777, 0x8df67b7b,
                  0xdfff2f2, 0xbdd66b6b, 0xb1de6f6f, 0x5491c5c5,
                  0x50603030, 0x3020101, 0xa9ce6767, 0x7d562b2b,
                  0x19e7fefe, 0x62b5d7d7, 0xe64dabab, 0x9aec7676,
                  0x458fcaca, 0x9d1f8282, 0x4089c9c9, 0x87fa7d7d,
                  Severity: Major
                  Found in tlslite/utils/rijndael.py and 13 other locations - About 2 days to fix
                  tlslite/utils/rijndael.py on lines 51..82
                  tlslite/utils/rijndael.py on lines 85..116
                  tlslite/utils/rijndael.py on lines 118..181
                  tlslite/utils/rijndael.py on lines 248..311
                  tlslite/utils/rijndael.py on lines 313..376
                  tlslite/utils/rijndael.py on lines 378..441
                  tlslite/utils/rijndael.py on lines 443..506
                  tlslite/utils/rijndael.py on lines 508..571
                  tlslite/utils/rijndael.py on lines 573..636
                  tlslite/utils/rijndael.py on lines 638..701
                  tlslite/utils/rijndael.py on lines 703..766
                  tlslite/utils/rijndael.py on lines 768..831
                  tlslite/utils/rijndael.py on lines 833..896

                  Similar blocks of code found in 14 locations. Consider refactoring.
                  Open

                  T8 = (0xf4a75051, 0x4165537e, 0x17a4c31a, 0x275e963a,
                  0xab6bcb3b, 0x9d45f11f, 0xfa58abac, 0xe303934b,
                  0x30fa5520, 0x766df6ad, 0xcc769188, 0x24c25f5,
                  0xe5d7fc4f, 0x2acbd7c5, 0x35448026, 0x62a38fb5,
                  0xb15a49de, 0xba1b6725, 0xea0e9845, 0xfec0e15d,
                  Severity: Major
                  Found in tlslite/utils/rijndael.py and 13 other locations - About 2 days to fix
                  tlslite/utils/rijndael.py on lines 51..82
                  tlslite/utils/rijndael.py on lines 85..116
                  tlslite/utils/rijndael.py on lines 118..181
                  tlslite/utils/rijndael.py on lines 183..246
                  tlslite/utils/rijndael.py on lines 248..311
                  tlslite/utils/rijndael.py on lines 313..376
                  tlslite/utils/rijndael.py on lines 378..441
                  tlslite/utils/rijndael.py on lines 443..506
                  tlslite/utils/rijndael.py on lines 508..571
                  tlslite/utils/rijndael.py on lines 638..701
                  tlslite/utils/rijndael.py on lines 703..766
                  tlslite/utils/rijndael.py on lines 768..831
                  tlslite/utils/rijndael.py on lines 833..896

                  Similar blocks of code found in 14 locations. Consider refactoring.
                  Open

                  T7 = (0xa75051f4, 0x65537e41, 0xa4c31a17, 0x5e963a27,
                  0x6bcb3bab, 0x45f11f9d, 0x58abacfa, 0x3934be3,
                  0xfa552030, 0x6df6ad76, 0x769188cc, 0x4c25f502,
                  0xd7fc4fe5, 0xcbd7c52a, 0x44802635, 0xa38fb562,
                  0x5a49deb1, 0x1b6725ba, 0xe9845ea, 0xc0e15dfe,
                  Severity: Major
                  Found in tlslite/utils/rijndael.py and 13 other locations - About 2 days to fix
                  tlslite/utils/rijndael.py on lines 51..82
                  tlslite/utils/rijndael.py on lines 85..116
                  tlslite/utils/rijndael.py on lines 118..181
                  tlslite/utils/rijndael.py on lines 183..246
                  tlslite/utils/rijndael.py on lines 248..311
                  tlslite/utils/rijndael.py on lines 313..376
                  tlslite/utils/rijndael.py on lines 378..441
                  tlslite/utils/rijndael.py on lines 443..506
                  tlslite/utils/rijndael.py on lines 573..636
                  tlslite/utils/rijndael.py on lines 638..701
                  tlslite/utils/rijndael.py on lines 703..766
                  tlslite/utils/rijndael.py on lines 768..831
                  tlslite/utils/rijndael.py on lines 833..896

                  Similar blocks of code found in 14 locations. Consider refactoring.
                  Open

                  T4 = (0x6363a5c6, 0x7c7c84f8, 0x777799ee, 0x7b7b8df6,
                  0xf2f20dff, 0x6b6bbdd6, 0x6f6fb1de, 0xc5c55491,
                  0x30305060, 0x1010302, 0x6767a9ce, 0x2b2b7d56,
                  0xfefe19e7, 0xd7d762b5, 0xababe64d, 0x76769aec,
                  0xcaca458f, 0x82829d1f, 0xc9c94089, 0x7d7d87fa,
                  Severity: Major
                  Found in tlslite/utils/rijndael.py and 13 other locations - About 2 days to fix
                  tlslite/utils/rijndael.py on lines 51..82
                  tlslite/utils/rijndael.py on lines 85..116
                  tlslite/utils/rijndael.py on lines 118..181
                  tlslite/utils/rijndael.py on lines 183..246
                  tlslite/utils/rijndael.py on lines 248..311
                  tlslite/utils/rijndael.py on lines 378..441
                  tlslite/utils/rijndael.py on lines 443..506
                  tlslite/utils/rijndael.py on lines 508..571
                  tlslite/utils/rijndael.py on lines 573..636
                  tlslite/utils/rijndael.py on lines 638..701
                  tlslite/utils/rijndael.py on lines 703..766
                  tlslite/utils/rijndael.py on lines 768..831
                  tlslite/utils/rijndael.py on lines 833..896
                  Severity
                  Category
                  Status
                  Source
                  Language