66 #define M_check_autoarg(ctx, arg, arglen, err) \
67 if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) \
69 size_t pksize = (size_t)EVP_PKEY_size(ctx->pkey); \
75 else if (*arglen < pksize) \
77 EVPerr(err, EVP_R_BUFFER_TOO_SMALL); \
101 unsigned char *sig,
size_t *siglen,
102 const unsigned char *tbs,
size_t tbslen)
116 return ctx->
pmeth->
sign(ctx, sig, siglen, tbs, tbslen);
138 const unsigned char *sig,
size_t siglen,
139 const unsigned char *tbs,
size_t tbslen)
152 return ctx->
pmeth->
verify(ctx, sig, siglen, tbs, tbslen);
174 unsigned char *rout,
size_t *routlen,
175 const unsigned char *sig,
size_t siglen)
211 unsigned char *out,
size_t *outlen,
212 const unsigned char *in,
size_t inlen)
226 return ctx->
pmeth->
encrypt(ctx, out, outlen, in, inlen);
248 unsigned char *out,
size_t *outlen,
249 const unsigned char *in,
size_t inlen)
263 return ctx->
pmeth->
decrypt(ctx, out, outlen, in, inlen);