[][src]Type Definition pkcs11::functions::C_UnwrapKey

type C_UnwrapKey = extern "C" fn(hSession: CK_SESSION_HANDLE, pMechanism: CK_MECHANISM_PTR, hUnwrappingKey: CK_OBJECT_HANDLE, pWrappedKey: CK_BYTE_PTR, ulWrappedKeyLen: CK_ULONG, pTemplate: CK_ATTRIBUTE_PTR, ulAttributeCount: CK_ULONG, phKey: CK_OBJECT_HANDLE_PTR) -> CK_RV;

C_UnwrapKey unwraps (decrypts) a wrapped key, creating a new key object.

Function Parameters

  • hSession: session's handle
  • pMechanism: unwrapping mech.
  • hUnwrappingKey: unwrapping key
  • pWrappedKey: the wrapped key
  • ulWrappedKeyLen: wrapped key len
  • pTemplate: new key template
  • ulAttributeCount: template length
  • phKey: gets new handle