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-01-19 11:31:07 +01:00
2015-09-07 07:46:11 +02:00
2016-03-15 08:37:57 +01:00
2016-05-02 12:19:00 +02:00
2016-05-02 15:28:24 +02:00
2015-02-03 22:21:22 +01:00
2016-01-19 11:31:07 +01:00
2015-04-10 13:32:09 +02:00
2016-01-19 11:31:08 +01:00
2016-05-02 16:56:54 +02:00
2016-10-22 16:05:32 +02:00
2016-05-02 16:58:47 +02:00
2016-05-03 09:41:26 +02:00
2016-11-03 15:20:36 +01:00
2016-10-22 16:05:32 +02:00
2016-10-22 16:05:32 +02:00
2016-05-02 16:58:47 +02:00
2011-09-18 21:37:17 +02:00
2016-11-02 18:53:59 +01:00
2016-05-02 11:55:38 +02:00
2016-11-03 15:20:36 +01:00
2016-11-03 15:20:36 +01:00
2016-11-03 15:20:36 +01:00
2014-01-22 09:45:45 +01:00
2016-01-19 11:31:07 +01:00
2014-01-07 15:18:15 +01:00
2016-10-22 16:05:32 +02:00
2016-01-19 11:31:08 +01:00
2011-05-01 19:42:50 +02:00
2016-10-22 16:05:32 +02:00
2016-01-19 11:31:07 +01:00
2016-01-19 11:31:08 +01:00
2016-01-19 11:31:08 +01:00
2015-10-22 08:17:01 +02:00
2016-11-03 15:20:26 +01:00
2014-06-10 13:52:38 +02:00
2012-10-09 11:09:34 +02:00
2016-05-02 16:56:54 +02:00
2015-06-24 17:13:19 +02:00
2016-10-22 16:05:32 +02:00
2016-01-19 11:31:08 +01:00
2016-01-19 11:31:07 +01:00
2016-01-19 11:31:08 +01:00
2016-05-02 17:34:09 +02:00
2016-01-19 11:31:08 +01:00
2016-01-19 11:31:08 +01:00
2016-03-15 08:35:47 +01:00
2015-09-07 10:57:34 +02:00
2016-11-03 15:20:30 +01:00
2016-11-03 15:20:30 +01:00
2016-05-02 16:58:47 +02:00
2014-02-05 22:29:22 +01:00
2016-01-19 11:31:07 +01:00
2016-10-08 10:54:36 +02:00
2016-10-22 16:03:33 +02:00
2016-10-22 16:05:32 +02:00
2016-05-02 17:27:16 +02:00
2015-05-04 17:54:01 +02:00
2014-01-08 18:57:31 +01:00
2016-11-03 15:20:36 +01:00