Lines Matching refs:capi_key
839 CAPI_KEY *capi_key;
846 capi_key = RSA_get_ex_data(rsa, rsa_capi_idx);
847 if (!capi_key) {
887 if (!CryptCreateHash(capi_key->hprov, alg, 0, 0, &hash)) {
902 if (!CryptSignHash(hash, capi_key->keyspec, NULL, 0, sigret, &slen)) {
931 CAPI_KEY *capi_key;
943 capi_key = RSA_get_ex_data(rsa, rsa_capi_idx);
944 if (!capi_key) {
978 if (!CryptDecrypt(capi_key->key, 0, TRUE, flags, tmpbuf, &dlen)) {
995 CAPI_KEY *capi_key;
996 capi_key = RSA_get_ex_data(rsa, rsa_capi_idx);
997 capi_free_key(capi_key);
1011 CAPI_KEY *capi_key;
1019 capi_key = DSA_get_ex_data(dsa, dsa_capi_idx);
1021 if (!capi_key) {
1032 if (!CryptCreateHash(capi_key->hprov, CALG_SHA1, 0, 0, &hash)) {
1047 if (!CryptSignHash(hash, capi_key->keyspec, NULL, 0, csigbuf, &slen)) {
1075 CAPI_KEY *capi_key;
1076 capi_key = DSA_get_ex_data(dsa, dsa_capi_idx);
1077 capi_free_key(capi_key);