diff options
author | bodo <bodo> | 2002-08-09 08:42:06 +0000 |
---|---|---|
committer | bodo <bodo> | 2002-08-09 08:42:06 +0000 |
commit | b619a8a3e0fc0b61d39fc8db14f32ff91b212eb5 (patch) | |
tree | e044ffd2706a9eb64ca30249f1a8307b0cc23496 /apps/req.c | |
parent | b0d432071bb467b08b674b503bcee2e3438198a9 (diff) | |
download | openssl-b619a8a3e0fc0b61d39fc8db14f32ff91b212eb5.tar.gz |
Add ECDH support.
Additional changes:
- use EC_GROUP_get_degree() in apps/req.c
- add ECDSA and ECDH to apps/speed.c
- adds support for EC curves over binary fields to ECDSA
- new function EC_KEY_up_ref() in crypto/ec/ec_key.c
- reorganize crypto/ecdsa/ecdsatest.c
- add engine support for ECDH
- fix a few bugs in ECDSA engine support
Submitted by: Douglas Stebila <douglas.stebila@sun.com>
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/req.c b/apps/req.c index af2db1628..b6bc85e38 100644 --- a/apps/req.c +++ b/apps/req.c @@ -369,16 +369,7 @@ int MAIN(int argc, char **argv) BIO_free(in); in=NULL; - { - BIGNUM *order = BN_new(); - - if (!order) - goto end; - if (!EC_GROUP_get_order(ec_params->group, order, NULL)) - goto end; - newkey = BN_num_bits(order); - BN_free(order); - } + newkey = EC_GROUP_get_degree(ec_params->group); } else |