Home | History | Annotate | Download | only in cms

Lines Matching defs:pctx

307 	EVP_PKEY_CTX *pctx = NULL;
322 pctx = EVP_PKEY_CTX_new(ktri->pkey, NULL);
323 if (!pctx)
326 if (EVP_PKEY_encrypt_init(pctx) <= 0)
329 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_ENCRYPT,
336 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, ec->key, ec->keylen) <= 0)
348 if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0)
357 if (pctx)
358 EVP_PKEY_CTX_free(pctx);
371 EVP_PKEY_CTX *pctx = NULL;
385 pctx = EVP_PKEY_CTX_new(ktri->pkey, NULL);
386 if (!pctx)
389 if (EVP_PKEY_decrypt_init(pctx) <= 0)
392 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DECRYPT,
399 if (EVP_PKEY_decrypt(pctx, NULL, &eklen,
413 if (EVP_PKEY_decrypt(pctx, ek, &eklen,
433 if (pctx)
434 EVP_PKEY_CTX_free(pctx);