tlsfuzzer/tlslite-ng

View on GitHub
tlslite/keyexchange.py

Summary

Maintainability
F
5 days
Test Coverage
A
96%

File keyexchange.py has 1005 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

    Function calcVerifyBytes has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
    Open

        def calcVerifyBytes(version, handshakeHashes, signatureAlg,
                            premasterSecret, clientRandom, serverRandom,
                            prf_name = None, peer_tag=b'client', key_type="rsa"):
            """Calculate signed bytes for Certificate Verify"""
            if version == (3, 0):
    Severity: Minor
    Found in tlslite/keyexchange.py - About 3 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Cyclomatic complexity is too high in method makeCertificateVerify. (14)
    Open

        @staticmethod
        def makeCertificateVerify(version, handshakeHashes, validSigAlgs,
                                  privateKey, certificateRequest, premasterSecret,
                                  clientRandom, serverRandom):
            """Create a Certificate Verify message
    Severity: Minor
    Found in tlslite/keyexchange.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in method calcVerifyBytes. (13)
    Open

        @staticmethod
        def calcVerifyBytes(version, handshakeHashes, signatureAlg,
                            premasterSecret, clientRandom, serverRandom,
                            prf_name = None, peer_tag=b'client', key_type="rsa"):
            """Calculate signed bytes for Certificate Verify"""
    Severity: Minor
    Found in tlslite/keyexchange.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function makeCertificateVerify has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
    Open

        def makeCertificateVerify(version, handshakeHashes, validSigAlgs,
                                  privateKey, certificateRequest, premasterSecret,
                                  clientRandom, serverRandom):
            """Create a Certificate Verify message
    
    
    Severity: Minor
    Found in tlslite/keyexchange.py - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function signServerKeyExchange has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
    Open

        def signServerKeyExchange(self, serverKeyExchange, sigHash=None):
            """
            Sign a server key exchange using default or specified algorithm
    
            :type sigHash: str
    Severity: Minor
    Found in tlslite/keyexchange.py - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Cyclomatic complexity is too high in method _tls12_verify_SKE. (11)
    Open

        @staticmethod
        def _tls12_verify_SKE(serverKeyExchange, publicKey, clientRandom,
                              serverRandom, validSigAlgs):
            """Verify TLSv1.2 version of SKE."""
            if (serverKeyExchange.hashAlg, serverKeyExchange.signAlg) not in \
    Severity: Minor
    Found in tlslite/keyexchange.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function _tls12_verify_SKE has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
    Open

        def _tls12_verify_SKE(serverKeyExchange, publicKey, clientRandom,
                              serverRandom, validSigAlgs):
            """Verify TLSv1.2 version of SKE."""
            if (serverKeyExchange.hashAlg, serverKeyExchange.signAlg) not in \
                    validSigAlgs:
    Severity: Minor
    Found in tlslite/keyexchange.py - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function calcVerifyBytes has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def calcVerifyBytes(version, handshakeHashes, signatureAlg,
    Severity: Major
    Found in tlslite/keyexchange.py - About 1 hr to fix

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

          def __init__(self, cipherSuite, clientHello, serverHello, privateKey,
      Severity: Major
      Found in tlslite/keyexchange.py - About 1 hr to fix

        Function makeCertificateVerify has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def makeCertificateVerify(version, handshakeHashes, validSigAlgs,
        Severity: Major
        Found in tlslite/keyexchange.py - About 50 mins to fix

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

              def __init__(self, cipherSuite, clientHello, serverHello, privateKey,
          Severity: Minor
          Found in tlslite/keyexchange.py - About 45 mins to fix

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

                def __init__(self, cipherSuite, clientHello, serverHello, privateKey,
            Severity: Minor
            Found in tlslite/keyexchange.py - About 45 mins to fix

              Function processClientKeyExchange has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

                  def processClientKeyExchange(self, clientKeyExchange):
                      """Decrypt client key exchange, return premaster secret"""
                      premasterSecret = self.privateKey.decrypt(\
                          clientKeyExchange.encryptedPreMasterSecret)
              
              
              Severity: Minor
              Found in tlslite/keyexchange.py - About 45 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

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

                  def __init__(self, cipherSuite, clientHello, serverHello, acceptedCurves,
              Severity: Minor
              Found in tlslite/keyexchange.py - About 35 mins to fix

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

                    def __init__(self, cipherSuite, clientHello, serverHello,
                Severity: Minor
                Found in tlslite/keyexchange.py - About 35 mins to fix

                  Function calc_shared_key has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      def calc_shared_key(self, private, peer_share,
                              valid_point_formats=('uncompressed',)):
                          """
                          Calculate the shared key.
                  
                  
                  Severity: Minor
                  Found in tlslite/keyexchange.py - About 35 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function makeServerKeyExchange has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                  Open

                      def makeServerKeyExchange(self, sigHash=None):
                          """Create AECDHE version of Server Key Exchange"""
                          #Get client supported groups
                          client_curves = self.clientHello.getExtension(
                                  ExtensionType.supported_groups)
                  Severity: Minor
                  Found in tlslite/keyexchange.py - About 25 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function verifyServerKeyExchange has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                  Open

                      def verifyServerKeyExchange(serverKeyExchange, publicKey, clientRandom,
                                                  serverRandom, validSigAlgs):
                          """Verify signature on the Server Key Exchange message
                  
                          the only acceptable signature algorithms are specified by validSigAlgs
                  Severity: Minor
                  Found in tlslite/keyexchange.py - About 25 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  TODO found
                  Open

                          # TODO make the minimum changeable
                  Severity: Minor
                  Found in tlslite/keyexchange.py by fixme

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

                              if scheme is None:
                                  padding = 'pkcs1'
                              else:
                                  padding = SignatureScheme.getPadding(scheme)
                                  if padding == 'pss':
                  Severity: Major
                  Found in tlslite/keyexchange.py and 1 other location - About 2 hrs to fix
                  tlslite/tlsconnection.py on lines 4536..4542

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 62.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

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

                      def makeClientKeyExchange(self):
                          """Make client key exchange for ECDHE"""
                          cke = super(AECDHKeyExchange, self).makeClientKeyExchange()
                          cke.createECDH(self.ecdhYc)
                          return cke
                  Severity: Major
                  Found in tlslite/keyexchange.py and 3 other locations - About 40 mins to fix
                  tlslite/keyexchange.py on lines 560..564
                  tlslite/keyexchange.py on lines 640..644
                  tlslite/keyexchange.py on lines 881..885

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 37.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

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

                      def makeClientKeyExchange(self):
                          """Create ClientKeyExchange"""
                          cke = super(SRPKeyExchange, self).makeClientKeyExchange()
                          cke.createSRP(self.A)
                          return cke
                  Severity: Major
                  Found in tlslite/keyexchange.py and 3 other locations - About 40 mins to fix
                  tlslite/keyexchange.py on lines 560..564
                  tlslite/keyexchange.py on lines 640..644
                  tlslite/keyexchange.py on lines 765..769

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 37.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

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

                      def makeClientKeyExchange(self):
                          """Create client key share for the key exchange"""
                          cke = super(ADHKeyExchange, self).makeClientKeyExchange()
                          cke.createDH(self.dh_Yc)
                          return cke
                  Severity: Major
                  Found in tlslite/keyexchange.py and 3 other locations - About 40 mins to fix
                  tlslite/keyexchange.py on lines 560..564
                  tlslite/keyexchange.py on lines 765..769
                  tlslite/keyexchange.py on lines 881..885

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 37.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

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

                      def makeClientKeyExchange(self):
                          """Return a client key exchange with clients key share"""
                          clientKeyExchange = super(RSAKeyExchange, self).makeClientKeyExchange()
                          clientKeyExchange.createRSA(self.encPremasterSecret)
                          return clientKeyExchange
                  Severity: Major
                  Found in tlslite/keyexchange.py and 3 other locations - About 40 mins to fix
                  tlslite/keyexchange.py on lines 640..644
                  tlslite/keyexchange.py on lines 765..769
                  tlslite/keyexchange.py on lines 881..885

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 37.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Block comment should start with '# '
                  Open

                  #pylint: enable = invalid-name
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Continuation line over-indented for visual indent
                  Open

                                  getattr(SignatureScheme, sig_hash)
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Unexpected spaces around keyword / parameter equals
                  Open

                                          prf_name = None, peer_tag=b'client', key_type="rsa"):
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Don't use spaces around the '=' sign in function arguments.

                  Don't use spaces around the '=' sign when used to indicate a
                  keyword argument or a default parameter value, except when
                  using a type annotation.
                  
                  Okay: def complex(real, imag=0.0):
                  Okay: return magic(r=real, i=imag)
                  Okay: boolean(a == b)
                  Okay: boolean(a != b)
                  Okay: boolean(a <= b)
                  Okay: boolean(a >= b)
                  Okay: def foo(arg: int = 42):
                  Okay: async def foo(arg: int = 42):
                  
                  E251: def complex(real, imag = 0.0):
                  E251: return magic(r = real, i = imag)
                  E252: def complex(real, image: float=0.0):

                  The backslash is redundant between brackets
                  Open

                          premasterSecret = self.privateKey.decrypt(\
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Unexpected spaces around keyword / parameter equals
                  Open

                                      encoding = 'uncompressed'
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Don't use spaces around the '=' sign in function arguments.

                  Don't use spaces around the '=' sign when used to indicate a
                  keyword argument or a default parameter value, except when
                  using a type annotation.
                  
                  Okay: def complex(real, imag=0.0):
                  Okay: return magic(r=real, i=imag)
                  Okay: boolean(a == b)
                  Okay: boolean(a != b)
                  Okay: boolean(a <= b)
                  Okay: boolean(a >= b)
                  Okay: def foo(arg: int = 42):
                  Okay: async def foo(arg: int = 42):
                  
                  E251: def complex(real, imag = 0.0):
                  E251: return magic(r = real, i = imag)
                  E252: def complex(real, image: float=0.0):

                  Block comment should start with '# '
                  Open

                          #Client ephemeral value
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                          #Calculate u
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Continuation line under-indented for visual indent
                  Open

                                      SignatureScheme.ed448):
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Block comment should start with '# '
                  Open

                  #pylint: disable = invalid-name
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                          #Pick first client preferred group we support
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                                  #Tolerate buggy IE clients
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Continuation line with same indent as next logical line
                  Open

                              or serverKeyExchange.named_curve not in self.acceptedCurves:
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Unexpected spaces around keyword / parameter equals
                  Open

                                      encoding = 'uncompressed'
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Don't use spaces around the '=' sign in function arguments.

                  Don't use spaces around the '=' sign when used to indicate a
                  keyword argument or a default parameter value, except when
                  using a type annotation.
                  
                  Okay: def complex(real, imag=0.0):
                  Okay: return magic(r=real, i=imag)
                  Okay: boolean(a == b)
                  Okay: boolean(a != b)
                  Okay: boolean(a <= b)
                  Okay: boolean(a >= b)
                  Okay: def foo(arg: int = 42):
                  Okay: async def foo(arg: int = 42):
                  
                  E251: def complex(real, imag = 0.0):
                  E251: return magic(r = real, i = imag)
                  E252: def complex(real, image: float=0.0):

                  Block comment should start with '# '
                  Open

                  #pylint: enable = invalid-name
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                          #Calculate server's ephemeral DH values (b, B)
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                          #Calculate premaster secret
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                  #pylint: enable = invalid-name
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Continuation line under-indented for visual indent
                  Open

                              valid_point_formats=('uncompressed',)):
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  The backslash is redundant between brackets
                  Open

                              raise TLSInsufficientSecurity("N value is too small: {0}".\
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  The backslash is redundant between brackets
                  Open

                              raise TLSInsufficientSecurity("N value is too large: {0}".\
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Avoid explicit line join between brackets.

                  The preferred way of wrapping long lines is by using Python's
                  implied line continuation inside parentheses, brackets and braces.
                  Long lines can be broken over multiple lines by wrapping expressions
                  in parentheses.  These should be used in preference to using a
                  backslash for line continuation.
                  
                  E502: aaa = [123, \\n       123]
                  E502: aaa = ("bbb " \\n       "ccc")
                  
                  Okay: aaa = [123,\n       123]
                  Okay: aaa = ("bbb "\n       "ccc")
                  Okay: aaa = "bbb " \\n    "ccc"
                  Okay: aaa = 123  # \\

                  Block comment should start with '# '
                  Open

                          #Calculate client's static DH values (x, v)
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                          #Create ServerKeyExchange, signing it if necessary
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Continuation line over-indented for visual indent
                  Open

                                                               ecdsa.util.sigdecode_der):
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Block comment should start with '# '
                  Open

                          #Calculate u
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Unexpected spaces around keyword / parameter equals
                  Open

                                          prf_name = None, peer_tag=b'client', key_type="rsa"):
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Don't use spaces around the '=' sign in function arguments.

                  Don't use spaces around the '=' sign when used to indicate a
                  keyword argument or a default parameter value, except when
                  using a type annotation.
                  
                  Okay: def complex(real, imag=0.0):
                  Okay: return magic(r=real, i=imag)
                  Okay: boolean(a == b)
                  Okay: boolean(a != b)
                  Okay: boolean(a <= b)
                  Okay: boolean(a >= b)
                  Okay: def foo(arg: int = 42):
                  Okay: async def foo(arg: int = 42):
                  
                  E251: def complex(real, imag = 0.0):
                  E251: return magic(r = real, i = imag)
                  E252: def complex(real, image: float=0.0):

                  Block comment should start with '# '
                  Open

                  #pylint: disable = invalid-name
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                          #Get parameters from username
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Block comment should start with '# '
                  Open

                          #Calculate premaster secret
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Continuation line over-indented for visual indent
                  Open

                                                               hash_bytes,
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  Continuation line over-indented for visual indent
                  Open

                                            handshakeHashes.digest(prf_name)
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Continuation lines indentation.

                  Continuation lines should align wrapped elements either vertically
                  using Python's implicit line joining inside parentheses, brackets
                  and braces, or using a hanging indent.
                  
                  When using a hanging indent these considerations should be applied:
                  - there should be no arguments on the first line, and
                  - further indentation should be used to clearly distinguish itself
                    as a continuation line.
                  
                  Okay: a = (\n)
                  E123: a = (\n    )
                  
                  Okay: a = (\n    42)
                  E121: a = (\n   42)
                  E122: a = (\n42)
                  E123: a = (\n    42\n    )
                  E124: a = (24,\n     42\n)
                  E125: if (\n    b):\n    pass
                  E126: a = (\n        42)
                  E127: a = (24,\n      42)
                  E128: a = (24,\n    42)
                  E129: if (a or\n    b):\n    pass
                  E131: a = (\n    42\n 24)

                  At least two spaces before inline comment
                  Open

                          del serverKeyExchange # not present in RSA key exchange
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  Unexpected spaces around keyword / parameter equals
                  Open

                                      encoding = 'uncompressed'
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Don't use spaces around the '=' sign in function arguments.

                  Don't use spaces around the '=' sign when used to indicate a
                  keyword argument or a default parameter value, except when
                  using a type annotation.
                  
                  Okay: def complex(real, imag=0.0):
                  Okay: return magic(r=real, i=imag)
                  Okay: boolean(a == b)
                  Okay: boolean(a != b)
                  Okay: boolean(a <= b)
                  Okay: boolean(a >= b)
                  Okay: def foo(arg: int = 42):
                  Okay: async def foo(arg: int = 42):
                  
                  E251: def complex(real, imag = 0.0):
                  E251: return magic(r = real, i = imag)
                  E252: def complex(real, image: float=0.0):

                  Unexpected spaces around keyword / parameter equals
                  Open

                                      encoding = 'uncompressed'
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Don't use spaces around the '=' sign in function arguments.

                  Don't use spaces around the '=' sign when used to indicate a
                  keyword argument or a default parameter value, except when
                  using a type annotation.
                  
                  Okay: def complex(real, imag=0.0):
                  Okay: return magic(r=real, i=imag)
                  Okay: boolean(a == b)
                  Okay: boolean(a != b)
                  Okay: boolean(a <= b)
                  Okay: boolean(a >= b)
                  Okay: def foo(arg: int = 42):
                  Okay: async def foo(arg: int = 42):
                  
                  E251: def complex(real, imag = 0.0):
                  E251: return magic(r = real, i = imag)
                  E252: def complex(real, image: float=0.0):

                  Block comment should start with '# '
                  Open

                          #Get client supported groups
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  At least two spaces before inline comment
                  Open

                          del srvPublicKey # irrelevant for SRP
                  Severity: Minor
                  Found in tlslite/keyexchange.py by pep8

                  Separate inline comments by at least two spaces.

                  An inline comment is a comment on the same line as a statement.
                  Inline comments should be separated by at least two spaces from the
                  statement. They should start with a # and a single space.
                  
                  Each line of a block comment starts with a # and a single space
                  (unless it is indented text inside the comment).
                  
                  Okay: x = x + 1  # Increment x
                  Okay: x = x + 1    # Increment x
                  Okay: # Block comment
                  E261: x = x + 1 # Increment x
                  E262: x = x + 1  #Increment x
                  E262: x = x + 1  #  Increment x
                  E265: #Block comment
                  E266: ### Block comment

                  There are no issues that match your filters.

                  Category
                  Status