Home | History | Annotate | Download | only in evp

Lines Matching full:pmeth

88   const EVP_PKEY_METHOD *pmeth;
97 pmeth = evp_pkey_meth_find(id);
99 if (pmeth == NULL) {
114 ret->pmeth = pmeth;
121 if (pmeth->init) {
122 if (pmeth->init(ret) <= 0) {
144 if (ctx->pmeth && ctx->pmeth->cleanup) {
145 ctx->pmeth->cleanup(ctx);
155 if (!pctx->pmeth || !pctx->pmeth->copy) {
166 rctx->pmeth = pctx->pmeth;
184 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 return ctx->pmeth->ctrl(ctx, cmd, p1, p2);
226 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) {
232 if (!ctx->pmeth->sign_init) {
236 if (!ctx->pmeth->sign_init(ctx)) {
246 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) {
254 return ctx->pmeth->sign(ctx, sig, sig_len, data, data_len);
258 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify) {
263 if (!ctx->pmeth->verify_init) {
266 if (!ctx->pmeth->verify_init(ctx)) {
276 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify) {
284 return ctx->pmeth->verify(ctx, sig, sig_len, data, data_len);
288 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) {
293 if (!ctx->pmeth->encrypt_init) {
296 if (!ctx->pmeth->encrypt_init(ctx)) {
305 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) {
313 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen);
317 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) {
322 if (!ctx->pmeth->decrypt_init) {
325 if (!ctx->pmeth->decrypt_init(ctx)) {
334 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) {
342 return ctx->pmeth->decrypt(ctx, out, outlen, in, inlen);
346 if (!ctx || !ctx->pmeth || !ctx->pmeth->derive) {
351 if (!ctx->pmeth->derive_init) {
354 if (!ctx->pmeth->derive_init(ctx)) {
363 if (!ctx || !ctx->pmeth ||
364 !(ctx->pmeth->derive || ctx->pmeth->encrypt || ctx->pmeth->decrypt) ||
365 !ctx->pmeth->ctrl) {
376 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 0, peer);
410 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 1, peer);
422 if (!ctx || !ctx->pmeth || !ctx->pmeth->derive) {
430 return ctx->pmeth->derive(ctx, key, out_key_len);
434 if (!ctx || !ctx->pmeth || !ctx->pmeth->keygen) {
439 if (!ctx->pmeth->keygen_init) {
442 if (!ctx->pmeth->keygen_init(ctx)) {
450 if (!ctx || !ctx->pmeth || !ctx->pmeth->keygen) {
471 if (!ctx->pmeth->keygen(ctx, *ppkey)) {