1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00
David Benjamin 1a61d0c3ca openssl.c: clean up curve25519 code (#499)
File: openssl.c, openssl.h, crypto.h, kex.c

Notes:
This cleans up a few things in the curve25519 implementation:

- There is no need to create X509_PUBKEYs or PKCS8_PRIV_KEY_INFOs to
  extract key material. EVP_PKEY_get_raw_private_key and
  EVP_PKEY_get_raw_public_key work fine.

- libssh2_x25519_ctx was never used (and occasionally mis-typedefed to
  libssh2_ed25519_ctx). Remove it. The _libssh2_curve25519_new and
  _libssh2_curve25519_gen_k interfaces use the bytes. Note, if it needs
  to be added back, there is no need to roundtrip through
  EVP_PKEY_new_raw_private_key. EVP_PKEY_keygen already generated an
  EVP_PKEY.

- Add some missing error checks.

Credit:
David Benjamin
2020-07-10 10:47:48 -07:00
2020-07-08 13:48:59 -07:00
2016-02-24 23:44:13 +01:00
2016-03-15 21:58:26 +00:00
2019-08-02 16:38:08 -07:00
2016-08-14 16:03:25 +01:00
2019-06-20 10:47:44 -07:00
2011-04-04 13:31:33 +02:00
2016-02-24 23:44:13 +01:00
2018-08-02 14:00:25 -07:00
2011-04-04 13:31:33 +02:00
2016-02-24 23:44:13 +01:00
2019-06-19 11:11:28 -07:00

libssh2 - SSH2 library

libssh2 is a library implementing the SSH2 protocol, available under the revised BSD license.

Web site

Mailing list

BSD Licensed

Web site source code

Installation instructions:

Description
libssh2 - это библиотека, реализующая протокол SSH2, доступная по пересмотренной лицензии BSD
Readme 15 MiB
Languages
C 85.1%
M4 3.6%
CMake 3.4%
Shell 2.6%
RPGLE 1.8%
Other 3.2%