Lines Matching refs:hAlg
89 BCRYPT_ALG_HANDLE hAlg;
96 ctx->hAlg = NULL;
97 status = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_SHA1_ALGORITHM,
101 status = BCryptGetProperty(hAlg, BCRYPT_HASH_LENGTH, (PUCHAR)&hash_len,
104 BCryptCloseAlgorithmProvider(hAlg, 0);
109 BCryptCloseAlgorithmProvider(hAlg, 0);
112 status = BCryptCreateHash(hAlg, &hHash, NULL, 0,
115 BCryptCloseAlgorithmProvider(hAlg, 0);
120 ctx->hAlg = hAlg;
146 if (ctx->hAlg != NULL) {
147 BCryptCloseAlgorithmProvider(ctx->hAlg, 0);
149 ctx->hAlg = NULL;