Home | History | Annotate | Download | only in hcrypto

Lines Matching defs:hSession

90     CK_SESSION_HANDLE hSession;
95 CK_SESSION_HANDLE hSession;
324 if (p11ctx->hSession != CK_INVALID_HANDLE && key != NULL)
327 if (p11ctx->hSession == CK_INVALID_HANDLE) {
328 rv = p11_session_init(mechanismType, &p11ctx->hSession, &flags);
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);
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);
396 if (p11ctx->hSession != CK_INVALID_HANDLE) {
397 p11_module->C_CloseSession(p11ctx->hSession);
398 p11ctx->hSession = CK_INVALID_HANDLE;
415 if (p11ctx->hSession != CK_INVALID_HANDLE)
418 rv = p11_session_init(mechanismType, &p11ctx->hSession, &flags);
429 rv = p11_module->C_DigestInit(p11ctx->hSession, &mechanism);
444 rv = p11_module->C_DigestUpdate(p11ctx->hSession,
460 rv = p11_module->C_DigestFinal(p11ctx->hSession, NULL, &digestLen);
462 rv = p11_module->C_DigestFinal(p11ctx->hSession, digest, &digestLen);
475 rv = p11_module->C_CloseSession(p11ctx->hSession);
477 p11ctx->hSession = CK_INVALID_HANDLE;