Lines Matching defs:prov
109 HCRYPTPROV prov;
115 if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, 0)) {
120 if (!CryptCreateHash(prov, alg, 0, 0, &hash)) {
122 CryptReleaseContext(prov, 0);
130 CryptReleaseContext(prov, 0);
141 CryptReleaseContext(prov, 0);
157 HCRYPTPROV prov;
182 if (!CryptAcquireContext(&prov, NULL, MS_ENHANCED_PROV, PROV_RSA_FULL,
189 if (!CryptImportKey(prov, (BYTE *) &key_blob, sizeof(key_blob), 0, 0,
193 CryptReleaseContext(prov, 0);
201 CryptReleaseContext(prov, 0);
214 CryptReleaseContext(prov, 0);
231 HCRYPTPROV prov;
260 if (!CryptAcquireContext(&akey->prov, NULL,
269 if (!CryptImportKey(akey->prov, (BYTE *) &key_blob, sizeof(key_blob),
273 CryptReleaseContext(akey->prov, 0);
282 CryptReleaseContext(akey->prov, 0);
311 CryptReleaseContext(akey->prov, 0);
347 HCRYPTPROV prov;
399 if (!CryptAcquireContext(&ctx->prov, NULL, NULL, PROV_RSA_FULL, 0)) {
409 if (!CryptImportKey(ctx->prov, (BYTE *) &key_blob,
413 CryptReleaseContext(ctx->prov, 0);
419 if (!CryptCreateHash(ctx->prov, calg, ctx->key, 0, &ctx->hash)) {
421 CryptReleaseContext(ctx->prov, 0);
445 CryptReleaseContext(ctx->prov, 0);
502 HCRYPTPROV prov;
556 if (!CryptAcquireContext(&ctx->prov, NULL, MS_ENH_RSA_AES_PROV,
562 if (!CryptImportKey(ctx->prov, (BYTE *) &key_blob,
583 CryptReleaseContext(ctx->prov, 0);
626 CryptReleaseContext(ctx->prov, 0);
632 HCRYPTPROV prov;
637 HCRYPTPROV prov;
676 if (!CryptAcquireContext(&pk->prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
684 if (!CryptImportPublicKeyInfo(pk->prov, X509_ASN_ENCODING |
689 CryptReleaseContext(pk->prov, 0);
749 CryptReleaseContext(key->prov, 0);
759 CryptReleaseContext(key->prov, 0);