Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity
    • Default Quality Profiles:
      Sonar way, MISRA C++ 2008 recommended

      Description

      Noncompliant Code Example

      /* RSA keys set the key length during key generation rather than parameter generation! */
      if (type == EVP_PKEY_RSA) {
        if (!EVP_PKEY_CTX_set_rsa_keygen_bits(kctx, 1024)) { // Noncompliant
          goto err;
        }
      }
      

      Compliant Solution

      /* RSA keys set the key length during key generation rather than parameter generation! */
      if (type == EVP_PKEY_RSA) {
        if (!EVP_PKEY_CTX_set_rsa_keygen_bits(kctx, 2048)) {
          goto err;
        }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jeanchristophe.collet Jean-Christophe Collet (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: