Lines Matching defs:hash
835 HCRYPTHASH hash;
886 /* Create the hash object */
887 if (!CryptCreateHash(capi_key->hprov, alg, 0, 0, &hash)) {
892 /* Set the hash value to the value passed */
894 if (!CryptSetHashParam(hash, HP_HASHVAL, (unsigned char *)m, 0)) {
902 if (!CryptSignHash(hash, capi_key->keyspec, NULL, 0, sigret, &slen)) {
921 CryptDestroyHash(hash);
1008 HCRYPTHASH hash;
1031 /* Create the hash object */
1032 if (!CryptCreateHash(capi_key->hprov, CALG_SHA1, 0, 0, &hash)) {
1038 /* Set the hash value to the value passed */
1039 if (!CryptSetHashParam(hash, HP_HASHVAL, (unsigned char *)digest, 0)) {
1047 if (!CryptSignHash(hash, capi_key->keyspec, NULL, 0, csigbuf, &slen)) {
1069 CryptDestroyHash(hash);