Home | History | Annotate | Download | only in evp

Lines Matching refs:pctx

69 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
72 if (ctx->pctx == NULL) {
73 ctx->pctx = EVP_PKEY_CTX_new(pkey, e);
75 if (ctx->pctx == NULL) {
86 if (!EVP_PKEY_verify_init(ctx->pctx)) {
90 if (!EVP_PKEY_sign_init(ctx->pctx)) {
94 if (!EVP_PKEY_CTX_set_signature_md(ctx->pctx, type)) {
97 if (pctx) {
98 *pctx = ctx->pctx;
106 int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type,
108 return do_sigver_init(ctx, pctx, type, e, pkey, 0);
111 int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
113 return do_sigver_init(ctx, pctx, type, e, pkey, 1);
135 EVP_PKEY_sign(ctx->pctx, out_sig, out_sig_len, md, mdlen);
141 return EVP_PKEY_sign(ctx->pctx, out_sig, out_sig_len, NULL, s);
155 EVP_PKEY_verify(ctx->pctx, sig, sig_len, md, mdlen);