[−][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 handlepMechanism
: the wrapping mechanismhWrappingKey
: wrapping keyhKey
: key to be wrappedpWrappedKey
: gets wrapped keypulWrappedKeyLen
: gets wrapped key size