Lines Matching refs:hprov
413 HCRYPTPROV hprov; in capi_init() local
480 if (CryptAcquireContextW(&hprov, NULL, rsa_aes_cspname, PROV_RSA_AES, in capi_init()
483 CryptReleaseContext(hprov, 0); in capi_init()
525 HCRYPTPROV hprov; member
874 if (!CryptCreateHash(capi_key->hprov, alg, 0, 0, &hash)) { in capi_rsa_sign()
1019 if (!CryptCreateHash(capi_key->hprov, CALG_SHA1, 0, 0, &hash)) { in capi_dsa_do_sign()
1196 HCRYPTPROV hprov; in capi_list_containers() local
1216 if (!CryptAcquireContextW(&hprov, NULL, cspname, ctx->csptype, in capi_list_containers()
1223 if (!CryptGetProvParam(hprov, PP_ENUMCONTAINERS, NULL, &buflen, in capi_list_containers()
1227 CryptReleaseContext(hprov, 0); in capi_list_containers()
1247 if (!CryptGetProvParam(hprov, PP_ENUMCONTAINERS, (BYTE *)cname, in capi_list_containers()
1270 CryptReleaseContext(hprov, 0); in capi_list_containers()
1508 if (!CryptAcquireContextW(&key->hprov, contname, provname, ptype, in capi_get_key()
1514 if (!CryptGetUserKey(key->hprov, keyspec, &key->key)) { in capi_get_key()
1517 CryptReleaseContext(key->hprov, 0); in capi_get_key()
1591 CryptReleaseContext(key->hprov, 0); in capi_free_key()
1636 HCRYPTPROV hprov; in capi_ctx_set_provname() local
1644 if (name == NULL || !CryptAcquireContextW(&hprov, NULL, name, type, in capi_ctx_set_provname()
1651 CryptReleaseContext(hprov, 0); in capi_ctx_set_provname()