Home | History | Annotate | Download | only in ec

Lines Matching refs:ec

62 #include <openssl/ec.h>
67 /* EC pkey context structure */
125 EC_KEY *ec = ctx->pkey->pkey.ec;
129 *siglen = ECDSA_size(ec);
132 else if(*siglen < (size_t)ECDSA_size(ec))
144 ret = ECDSA_sign(type, tbs, tbslen, sig, &sltmp, ec);
158 EC_KEY *ec = ctx->pkey->pkey.ec;
165 ret = ECDSA_verify(type, tbs, tbslen, sig, siglen, ec);
184 group = EC_KEY_get0_group(ctx->pkey->pkey.ec);
189 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
197 ret = ECDH_compute_key(key, outlen, pubkey, ctx->pkey->pkey.ec, 0);
270 EC_KEY *ec = NULL;
278 ec = EC_KEY_new();
279 if (!ec)
281 ret = EC_KEY_set_group(ec, dctx->gen_group);
283 EVP_PKEY_assign_EC_KEY(pkey, ec);
285 EC_KEY_free(ec);
291 EC_KEY *ec = NULL;
297 ec = EC_KEY_new();
298 if (!ec)
300 EVP_PKEY_assign_EC_KEY(pkey, ec);
304 return EC_KEY_generate_key(pkey->pkey.ec);