Home | History | Annotate | Download | only in evp

Lines Matching refs:pmeth

92   const EVP_PKEY_METHOD *pmeth;
101 pmeth = evp_pkey_meth_find(id);
103 if (pmeth == NULL) {
118 ret->pmeth = pmeth;
125 if (pmeth->init) {
126 if (pmeth->init(ret) <= 0) {
147 if (ctx->pmeth && ctx->pmeth->cleanup) {
148 ctx->pmeth->cleanup(ctx);
162 if (!pctx->pmeth || !pctx->pmeth->copy) {
173 rctx->pmeth = pctx->pmeth;
185 if (pctx->pmeth->copy(rctx, pctx) > 0) {
204 if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl) {
208 if (keytype != -1 && ctx->pmeth->pkey_id != keytype) {
222 ret = ctx->pmeth->ctrl(ctx, cmd, p1, p2);
232 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) {
239 if (!ctx->pmeth->sign_init) {
243 if (!ctx->pmeth->sign_init(ctx)) {
253 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) {
262 return ctx->pmeth->sign(ctx, sig, sig_len, data, data_len);
266 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify) {
272 if (!ctx->pmeth->verify_init) {
275 if (!ctx->pmeth->verify_init(ctx)) {
285 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify) {
294 return ctx->pmeth->verify(ctx, sig, sig_len, data, data_len);
298 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) {
304 if (!ctx->pmeth->encrypt_init) {
307 if (!ctx->pmeth->encrypt_init(ctx)) {
316 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) {
325 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen);
329 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) {
335 if (!ctx->pmeth->decrypt_init) {
338 if (!ctx->pmeth->decrypt_init(ctx)) {
347 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) {
356 return ctx->pmeth->decrypt(ctx, out, outlen, in, inlen);
360 if (!ctx || !ctx->pmeth || !ctx->pmeth->derive) {
366 if (!ctx->pmeth->derive_init) {
369 if (!ctx->pmeth->derive_init(ctx)) {
378 if (!ctx || !ctx->pmeth ||
379 !(ctx->pmeth->derive || ctx->pmeth->encrypt || ctx->pmeth->decrypt) ||
380 !ctx->pmeth->ctrl) {
393 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 0, peer);
430 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 1, peer);
442 if (!ctx || !ctx->pmeth || !ctx->pmeth->derive) {
451 return ctx->pmeth->derive(ctx, key, out_key_len);
455 if (!ctx || !ctx->pmeth || !ctx->pmeth->keygen) {
461 if (!ctx->pmeth->keygen_init) {
464 if (!ctx->pmeth->keygen_init(ctx)) {
472 if (!ctx || !ctx->pmeth || !ctx->pmeth->keygen) {
490 if (!ctx->pmeth->keygen(ctx, *ppkey)) {