• Home
  • Raw
  • Download

Lines Matching refs:pctx

75   return (op == evp_sign) ? (ctx->pctx->pmeth->sign != NULL)  in uses_prehash()
76 : (ctx->pctx->pmeth->verify != NULL); in uses_prehash()
79 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in do_sigver_init() argument
82 if (ctx->pctx == NULL) { in do_sigver_init()
83 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); in do_sigver_init()
85 if (ctx->pctx == NULL) { in do_sigver_init()
91 if (!EVP_PKEY_verify_init(ctx->pctx)) { in do_sigver_init()
95 if (!EVP_PKEY_sign_init(ctx->pctx)) { in do_sigver_init()
101 !EVP_PKEY_CTX_set_signature_md(ctx->pctx, type)) { in do_sigver_init()
115 if (pctx) { in do_sigver_init()
116 *pctx = ctx->pctx; in do_sigver_init()
121 int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in EVP_DigestSignInit() argument
123 return do_sigver_init(ctx, pctx, type, e, pkey, evp_sign); in EVP_DigestSignInit()
126 int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in EVP_DigestVerifyInit() argument
128 return do_sigver_init(ctx, pctx, type, e, pkey, evp_verify); in EVP_DigestVerifyInit()
165 EVP_PKEY_sign(ctx->pctx, out_sig, out_sig_len, md, mdlen); in EVP_DigestSignFinal()
171 return EVP_PKEY_sign(ctx->pctx, out_sig, out_sig_len, NULL, s); in EVP_DigestSignFinal()
190 EVP_PKEY_verify(ctx->pctx, sig, sig_len, md, mdlen); in EVP_DigestVerifyFinal()
209 if (ctx->pctx->pmeth->sign_message == NULL) { in EVP_DigestSign()
214 return ctx->pctx->pmeth->sign_message(ctx->pctx, out_sig, out_sig_len, data, in EVP_DigestSign()
225 if (ctx->pctx->pmeth->verify_message == NULL) { in EVP_DigestVerify()
230 return ctx->pctx->pmeth->verify_message(ctx->pctx, sig, sig_len, data, len); in EVP_DigestVerify()