Uploaded image for project: 'Support'
  1. Support
  2. SUPPORT-129

C_GenerateKey does not accept NULL_PTR for pTemplate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: SoftHSM 2.0.0a1
    • Fix Version/s: SoftHSM 2.x develop
    • Component/s: PKCS#11 Interface
    • Labels:
      None
    • Environment:

      Xubuntu 10.04

      Description

      Cf. PKCS#11 Base Functionality v2.30 (pkcs-11v2-30b-d6.pdf), section 11.14 (Key Management Functions)

      C_GenerateKey returns CKR_ARGUMENTS_BAD if pTemplate is null (https://github.com/opendnssec/SoftHSMv2/blob/develop/src/lib/SoftHSM.cpp#L4299). An example from the spec suggests that there are cases where C_GenerateKey should accept NULL_PTR, e.g. with DES (CMK_DES_KEY_GEN) (cf. C_GenerateKey section p.173).

      To reproduce: cf. example in C_GenerateKey subsection in 11.14.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rickard Rickard Bellgrim
              Reporter:
              peniblec Kevin Le Gouguec
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: