Lines Matching refs:pctx
140 EVP_PKEY_CTX *pctx = NULL;
151 pctx = EVP_PKEY_CTX_new(pkey, NULL);
152 if (!pctx)
155 if (EVP_PKEY_encrypt_init(pctx) <= 0)
158 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_ENCRYPT,
164 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0)
174 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0)
185 if (pctx)
186 EVP_PKEY_CTX_free(pctx);
197 EVP_PKEY_CTX *pctx = NULL;
203 pctx = EVP_PKEY_CTX_new(pkey, NULL);
204 if (!pctx)
207 if (EVP_PKEY_decrypt_init(pctx) <= 0)
210 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DECRYPT,
216 if (EVP_PKEY_decrypt(pctx, NULL, &eklen,
227 if (EVP_PKEY_decrypt(pctx, ek, &eklen,
247 if (pctx)
248 EVP_PKEY_CTX_free(pctx);
922 EVP_PKEY_CTX *pctx;
933 if (EVP_DigestSignInit(&mctx, &pctx, md, NULL, si->pkey) <= 0)
936 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_SIGN,
958 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_SIGN,