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>
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
* Hudson (tjh@cryptsoft.com).
|
||||
*
|
||||
*/
|
||||
/* ====================================================================
|
||||
* Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
|
||||
* ECDH support in OpenSSL originally developed by
|
||||
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -109,6 +114,12 @@ static int bind_helper(ENGINE *e)
|
||||
#ifndef OPENSSL_NO_DSA
|
||||
|| !ENGINE_set_DSA(e, DSA_get_default_method())
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ECDH
|
||||
|| !ENGINE_set_ECDH(e, ECDH_OpenSSL())
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_ECDSA
|
||||
|| !ENGINE_set_ECDSA(e, ECDSA_OpenSSL())
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_DH
|
||||
|| !ENGINE_set_DH(e, DH_get_default_method())
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user