thekuwayama/tttls1.3

View on GitHub
lib/tttls1.3/endpoint.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method verified_certificate_verify? has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def self.verified_certificate_verify?(public_key:, signature_scheme:,
                                          signature:, context:, hash:)
      content = "\x20" * 64 + context + "\x00" + hash

      # RSA signatures MUST use an RSASSA-PSS algorithm, regardless of whether
Severity: Minor
Found in lib/tttls1.3/endpoint.rb - About 1 hr to fix

    Method sign_certificate_verify has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def self.sign_certificate_verify(key:, signature_scheme:, context:, hash:)
          content = "\x20" * 64 + context + "\x00" + hash
    
          # RSA signatures MUST use an RSASSA-PSS algorithm, regardless of whether
          # RSASSA-PKCS1-v1_5 algorithms appear in "signature_algorithms".
    Severity: Minor
    Found in lib/tttls1.3/endpoint.rb - About 1 hr to fix

      Method do_exporter has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            def do_exporter(secret, digest, label, context, key_length)
      Severity: Minor
      Found in lib/tttls1.3/endpoint.rb - About 35 mins to fix

        Method exporter has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def self.exporter(label, context, key_length, exporter_secret, cipher_suite)
        Severity: Minor
        Found in lib/tttls1.3/endpoint.rb - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status