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

[Kotlin] RSPEC-4426: Cryptographic keys should be robust

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Rules
    • 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
                Reporter:
                eric.therond Eric Therond
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: