Lines Matching defs:pkey
213 EVP_PKEY *pkey;
227 pkey = EVP_PKEY_new();
228 if (pkey == NULL)
230 if (!EVP_PKEY_set1_DSA(pkey, dsa)) {
231 EVP_PKEY_free(pkey);
234 sigbuf = malloc(EVP_PKEY_size(pkey));
236 EVP_PKEY_free(pkey);
239 if (!EVP_SignFinal(evp_md_ctx, sigbuf, &siglen, pkey)) {
240 EVP_PKEY_free(pkey);
246 INSIST(EVP_PKEY_size(pkey) >= (int) siglen);
247 EVP_PKEY_free(pkey);
313 EVP_PKEY *pkey;
348 pkey = EVP_PKEY_new();
349 if (pkey == NULL)
351 if (!EVP_PKEY_set1_DSA(pkey, dsa)) {
352 EVP_PKEY_free(pkey);
356 sigbuf = malloc(EVP_PKEY_size(pkey) + 50);
358 EVP_PKEY_free(pkey);
362 INSIST(EVP_PKEY_size(pkey) >= (int) siglen);
363 status = EVP_VerifyFinal(evp_md_ctx, sigbuf, siglen, pkey);
364 EVP_PKEY_free(pkey);
711 key->keydata.pkey = pub->keydata.pkey;
712 pub->keydata.pkey = NULL;