1
1
Justus Winter e3a866b8c1 ecdh: Implement ECDH using libgcrypt
* include/libssh/crypto.h (struct ssh_crypto_struct): Provide a
suitable 'ecdh_privkey'.
* include/libssh/ecdh.h: Also define 'HAVE_ECDH' if we do ECC using
libgcrypt.
(ecdh_build_k): New prototype.
* src/CMakeLists.txt (libssh_SRCS): Add backend-specific files.
* src/ecdh.c: Move backend-specific parts to...
* src/ecdh_crypto.c: ... this file.
* src/ecdh_gcrypt.c: New file.
* src/wrapper.c (crypto_free): Free 'ecdh_privkey'.

Signed-off-by: Justus Winter <justus@g10code.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-03 15:20:36 +01:00
..
2016-05-02 12:19:00 +02:00
2016-01-19 11:31:08 +01:00
2011-09-18 21:37:17 +02:00
2016-05-02 11:55:38 +02:00
2016-11-03 15:20:36 +01:00
2014-01-07 15:18:15 +01:00
2011-05-01 19:42:50 +02:00
2014-06-10 13:52:38 +02:00
2012-10-09 11:09:34 +02:00
2016-10-22 16:03:33 +02:00
2016-05-02 17:27:16 +02:00
2014-01-08 18:57:31 +01:00
2016-11-03 15:20:36 +01:00