Home | History | Annotate | Download | only in pkcs7

Lines Matching refs:pctx

144 	EVP_PKEY_CTX *pctx = NULL;
155 pctx = EVP_PKEY_CTX_new(pkey, NULL);
156 if (!pctx)
159 if (EVP_PKEY_encrypt_init(pctx) <= 0)
162 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_ENCRYPT,
169 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0)
180 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0)
191 if (pctx)
192 EVP_PKEY_CTX_free(pctx);
203 EVP_PKEY_CTX *pctx = NULL;
209 pctx = EVP_PKEY_CTX_new(pkey, NULL);
210 if (!pctx)
213 if (EVP_PKEY_decrypt_init(pctx) <= 0)
216 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DECRYPT,
223 if (EVP_PKEY_decrypt(pctx, NULL, &eklen,
235 if (EVP_PKEY_decrypt(pctx, ek, &eklen,
248 if (pctx)
249 EVP_PKEY_CTX_free(pctx);
859 EVP_PKEY_CTX *pctx;
870 if (EVP_DigestSignInit(&mctx, &pctx, md,NULL, si->pkey) <= 0)
873 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_SIGN,
895 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_SIGN,