Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-468

[Kotlin] Rule S4426: Cryptographic keys should be robust

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Canceled
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Kotlin
    • Labels:
      None

      Description

      Message for the user should mention the chosen algorithm and the correct key size for it:

      val keyPairGen1 = KeyPairGenerator.getInstance("RSA")
      keyPairGen1.initialize(1024) // Noncompliant
      

      >>> Use a key length of at least 2048 bits for RSA cipher algorithm.

      Code example:

      https://github.com/SonarSource/security-expected-issues/tree/master/kotlin/rules/vulnerabilities/RSPEC-4426

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              eric.therond Eric Therond
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: