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

type C_WrapKey = extern "C" fn(hSession: CK_SESSION_HANDLE, pMechanism: CK_MECHANISM_PTR, hWrappingKey: CK_OBJECT_HANDLE, hKey: CK_OBJECT_HANDLE, pWrappedKey: CK_BYTE_PTR, pulWrappedKeyLen: CK_ULONG_PTR) -> CK_RV;

C_WrapKey wraps (i.e., encrypts) a key.

Function Parameters

  • hSession: the session's handle
  • pMechanism: the wrapping mechanism
  • hWrappingKey: wrapping key
  • hKey: key to be wrapped
  • pWrappedKey: gets wrapped key
  • pulWrappedKeyLen: gets wrapped key size