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

C_GenerateKey fails if CKA_MODIFIABLE is true

    XMLWordPrintable

    Details

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

      Windows 32bit and Linux 32bit

      Description

      If the C_GenerateKey function is called with CKA_MODIFIABLE set as false in the template and the CKA_MODIFIABLE attribute is not the last in the attribute list the function fails with a CKR_ATTRIBUTE_READ_ONLY error.

      If the the CKA_MODIFIABLE attribute is set to true or left out of the attribute list the function call succeeds.

      I have not checked against SoftHSM 2.0.0b2 but I suspect it is present there as well since a quick code review does not reveal any changes in that area.

        Attachments

          Activity

            People

            Assignee:
            rickard Rickard Bellgrim
            Reporter:
            sirwio sirwio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: