94 if (!pkey_ec_init(dst))
119 static int pkey_ec_sign(
EVP_PKEY_CTX *ctx,
unsigned char *sig,
size_t *siglen,
120 const unsigned char *tbs,
size_t tbslen)
144 ret =
ECDSA_sign(type, tbs, tbslen, sig, &sltmp, ec);
148 *siglen = (size_t)sltmp;
153 const unsigned char *sig,
size_t siglen,
154 const unsigned char *tbs,
size_t tbslen)
170 static int pkey_ec_derive(
EVP_PKEY_CTX *ctx,
unsigned char *
key,
size_t *keylen)
204 static int pkey_ec_ctrl(
EVP_PKEY_CTX *ctx,
int type,
int p1,
void *p2)
250 const char *type,
const char *value)
252 if (!strcmp(type,
"ec_paramgen_curve"))
292 if (ctx->
pkey == NULL)