Type Definition pkcs11::functions::C_UnwrapKey
source · pub 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;
Expand description
C_UnwrapKey
unwraps (decrypts) a wrapped key, creating a new key object.
Function Parameters
hSession
: session’s handlepMechanism
: unwrapping mech.hUnwrappingKey
: unwrapping keypWrappedKey
: the wrapped keyulWrappedKeyLen
: wrapped key lenpTemplate
: new key templateulAttributeCount
: template lengthphKey
: gets new handle