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

C_EncryptUpdate not implemented

    XMLWordPrintable

    Details

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

      Java 7

      Description

      I'm trying to use SoftHSMv2 on OSX via Java to deal with 3DES keys.

      This is what I get, and looking at the code this is indeed so. Unfortunately I don't control the caller (SunPKCS11) thus I depend on C_EncryptUpdate being implemented (as suggested by SOFTHSM-20)

      57: C_EncryptInit
      2014-07-01 16:07:10.631
      [in] hSession = 0x1
      pMechanism->type=CKM_DES3_CBC
      [in] hKey = 0x4
      Returned: 0 CKR_OK

      58: C_EncryptUpdate
      2014-07-01 16:07:10.632
      [in] hSession = 0x1
      [in] pPart[ulPartLen] 00000007d5f29580 / 16
      00000000 01 02 03 04 05 06 07 08 01 02 03 04 05 06 07 08 ................
      Returned: 84 CKR_FUNCTION_NOT_SUPPORTED
      E: java.security.ProviderException: update() failed

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: