Home | History | Annotate | Download | only in hcrypto

Lines Matching defs:p11_module

84 static CK_FUNCTION_LIST_PTR p11_module;
158 heim_base_once_f(&once, &p11_module, p11_module_load_once);
160 if (p11_module == NULL)
170 rv = p11_module->C_Initialize(NULL);
196 assert(p11_module != NULL);
198 rv = p11_module->C_GetSlotList(CK_FALSE, NULL, &ulSlotCount);
208 rv = p11_module->C_GetSlotList(CK_FALSE, pSlotList, &ulSlotCount);
221 rv = p11_module->C_GetMechanismInfo(pSlotList[i], mechanismType, &info);
234 rv = p11_module->C_OpenSession(pSlotList[i], CKF_SERIAL_SESSION, NULL, NULL, phSession);
339 assert(p11_module != NULL);
342 rv = p11_module->C_CreateObject(p11ctx->hSession, attributes,
351 rv = p11_module->C_EncryptInit(p11ctx->hSession, &mechanism, p11ctx->hSecret);
353 rv = p11_module->C_DecryptInit(p11ctx->hSession, &mechanism, p11ctx->hSecret);
375 assert(p11_module != NULL);
380 rv = p11_module->C_EncryptUpdate(p11ctx->hSession, (unsigned char *)in, size, out, &ulCipherTextLen);
382 rv = p11_module->C_DecryptUpdate(p11ctx->hSession, (unsigned char *)in, size, out, &ulCipherTextLen);
393 p11_module->C_DestroyObject(p11ctx->hSession, p11ctx->hSecret);
397 p11_module->C_CloseSession(p11ctx->hSession);
427 assert(p11_module != NULL);
429 rv = p11_module->C_DigestInit(p11ctx->hSession, &mechanism);
441 assert(p11_module != NULL);
444 rv = p11_module->C_DigestUpdate(p11ctx->hSession,
458 assert(p11_module != NULL);
460 rv = p11_module->C_DigestFinal(p11ctx->hSession, NULL, &digestLen);
462 rv = p11_module->C_DigestFinal(p11ctx->hSession, digest, &digestLen);
473 assert(p11_module != NULL);
475 rv = p11_module->C_CloseSession(p11ctx->hSession);