Uploaded image for project: 'SoftHSM'
  1. SoftHSM
  2. SOFTHSM-98

Handle mandatory attributes for DSA, DH, and ECDSA correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0a2
    • Fix Version/s: 2.0.0b1
    • Component/s: PKCS#11 Interface
    • Labels:
      None

      Description

      Incoming mandatory attributes for DSA (CKA_PRIME, CKA_SUBPRIME, CKA_BASE) and ECDSA (CKA_EC_PARAMS) are ignored when saving the template. It will thus look like they are missing when performing the checks in P11Object::saveTemplate().

      In generateDSA and generateEC, remove the attributes from the publicKeyAttribs-switch-statement and also remove them from the manual encryption when saving the public object.

      These attributes will be automatically encrypted when calling CreateObject().

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: