aboutsummaryrefslogtreecommitdiff
path: root/src/ecdh.c
AgeCommit message (Collapse)AuthorFilesLines
2016-11-03ecdh: Implement ECDH using libgcryptJustus Winter1-265/+0
* 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-01-19cleanup: use ssh_ prefix in the packet (non-static) functionsFabiano Fidêncio1-4/+4
Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19cleanup: use ssh_ prefix in the dh (non-static) functionsFabiano Fidêncio1-1/+1
Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19cleanup: use ssh_ prefix in the buffer (non-static) functionsFabiano Fidêncio1-8/+8
Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-08-18ec: Fix build on CentOS.Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-08-06buffers: adapt ecdh.c to ssh_buffer_(un)pack()Aris Adamantiadis1-23/+9
Reviewed-by: Andreas Schneider <asn@samba.org>
2014-01-07update copyright informationAris Adamantiadis1-1/+1
2013-11-27ecdh: Use bignum_bin2bn.Andreas Schneider1-1/+1
2013-08-13ecdh: Refactor ecdh_build_k to check errors codes.Andreas Schneider1-14/+40
2013-07-14src: Migrate to SSH_LOG.Andreas Schneider1-3/+3
2013-07-13Server: fix rekeyingAris Adamantiadis1-10/+0
2013-06-19ecdh: Add missing return in ssh_client_ecdh_init().Andreas Schneider1-0/+1
2013-06-19ecdh: Avoid memory leaks in ssh_server_ecdh_init().Andreas Schneider1-36/+69
2013-06-18ecdh: Make sure we don't leak memory in ssh_client_ecdh_init().Andreas Schneider1-12/+27
This also adds more checks for return values.
2013-06-17ecdh: Check return values of buffer_add_* functions.Andreas Schneider1-4/+23
2012-02-05dh: Fix build with DEBUG_CRYPTO.Andreas Schneider1-3/+5
2012-02-04ecdh: Fix a memory leak in ecdh_build_k().Andreas Schneider1-5/+9
Thanks to Tom Judge for the report.
2012-02-04ecdh: Fix a memory leak in ssh_server_ecdh_init().Andreas Schneider1-0/+1
Thanks to Tom Judge for the report.
2011-09-23Fix bugs found by clangAris Adamantiadis1-1/+2
2011-09-18ECDH key exchange workingAris Adamantiadis1-10/+103
2011-09-18kex: split key selection and sendingAris Adamantiadis1-0/+8
2011-08-20pki: Fix build warnings.Andreas Schneider1-0/+1
2011-06-13Fix memory leakAris Adamantiadis1-1/+2
2011-06-13[crypto] initial support for ecdh-sha2-nistp256Aris Adamantiadis1-0/+167
Works with openssl Still requires work for libgcrypt and other modes