aboutsummaryrefslogtreecommitdiff
path: root/src/libgcrypt.c
AgeCommit message (Collapse)AuthorFilesLines
2016-11-03libgcrypt: Implement the 'evp' interfaceJustus Winter1-0/+53
* include/libssh/libgcrypt.h (EVPCTX): Fix type. (NID_gcrypt_nistp{256,384,521}): New constants. * src/libgcrypt.c (nid_to_md_algo): New function mapping curves to digest algorithms. (evp{,_init,_update,_final}): New functions. Signed-off-by: Justus Winter <justus@g10code.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02libgcrypt: Add helper to extract MPIs into ssh_stringsJustus Winter1-0/+52
* include/libssh/libgcrypt.h (ssh_sexp_extract_mpi): New prototype. * src/libgcrypt.c (ssh_sexp_extract_mpi): New function. Signed-off-by: Justus Winter <justus@g10code.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-17Fix a bunch of -Wmaybe-uninitializedFabiano FidĂȘncio1-1/+1
Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
2014-10-02crypto: check malloc return in ssh_mac_ctx_initJon Simons1-1/+5
Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-08-15libgcrypt: Fix initializer name.Andreas Schneider1-22/+22
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2014-04-22Add SHA2 algorithms for HMACDirkjan Bussink1-3/+71
BUG: https://red.libssh.org/issues/91 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-03-04security: fix for vulnerability CVE-2014-0017Aris Adamantiadis1-0/+3
When accepting a new connection, a forking server based on libssh forks and the child process handles the request. The RAND_bytes() function of openssl doesn't reset its state after the fork, but simply adds the current process id (getpid) to the PRNG state, which is not guaranteed to be unique. This can cause several children to end up with same PRNG state which is a security issue.
2012-10-05gcrypt: Fix simple DES support.Dmitriy Kuznetsov1-12/+21
2012-09-07kex: Add simple DES support for SSHv1.Dmitriy Kuznetsov1-0/+35
2011-09-18crypto: rename crypto_struct -> ssh_cipher_structAris Adamantiadis1-15/+15
2011-09-15crypt: Fix function definition.Andreas Schneider1-1/+3
2011-06-13[crypto] initial support for ecdh-sha2-nistp256Aris Adamantiadis1-3/+60
Works with openssl Still requires work for libgcrypt and other modes
2010-09-06misc: Rename libssh/ to src/Andreas Schneider1-0/+423