64 #ifndef OPENSSL_NO_ENGINE
80 #ifndef OPENSSL_NO_RSA
86 #ifndef OPENSSL_NO_DSA
102 return ((*a)->pkey_id - (*b)->pkey_id);
113 if (app_pkey_methods)
120 ret = OBJ_bsearch_pmeth(&t, standard_methods,
133 if (!pkey || !pkey->
ameth)
137 #ifndef OPENSSL_NO_ENGINE
171 #ifndef OPENSSL_NO_ENGINE
190 if (pmeth->
init(ret) <= 0)
247 *pflags = meth->
flags;
299 return int_ctx_new(pkey, e, -1);
304 return int_ctx_new(NULL, e,
id);
312 #ifndef OPENSSL_NO_ENGINE
325 #ifndef OPENSSL_NO_ENGINE
353 if (app_pkey_methods == NULL)
356 if (!app_pkey_methods)
375 #ifndef OPENSSL_NO_ENGINE
385 int cmd,
int p1,
void *p2)
393 if ((keytype != -1) && (ctx->
pmeth->
pkey_id != keytype))
402 if ((optype != -1) && !(ctx->
operation & optype))
408 ret = ctx->
pmeth->
ctrl(ctx, cmd, p1, p2);
418 const char *name,
const char *value)
426 if (!strcmp(name,
"digest"))
517 int (*sign)(
EVP_PKEY_CTX *ctx,
unsigned char *sig,
size_t *siglen,
518 const unsigned char *tbs,
size_t tbslen))
526 int (*verify)(
EVP_PKEY_CTX *ctx,
const unsigned char *sig,
size_t siglen,
527 const unsigned char *tbs,
size_t tbslen))
536 unsigned char *sig,
size_t *siglen,
537 const unsigned char *tbs,
size_t tbslen))
545 int (*signctx)(
EVP_PKEY_CTX *ctx,
unsigned char *sig,
size_t *siglen,
554 int (*verifyctx)(
EVP_PKEY_CTX *ctx,
const unsigned char *sig,
int siglen,
563 int (*encryptfn)(
EVP_PKEY_CTX *ctx,
unsigned char *out,
size_t *outlen,
564 const unsigned char *in,
size_t inlen))
572 int (*decrypt)(
EVP_PKEY_CTX *ctx,
unsigned char *out,
size_t *outlen,
573 const unsigned char *in,
size_t inlen))
589 int (*ctrl_str)(
EVP_PKEY_CTX *ctx,
const char *type,
const char *value))