commit | f7daf3185a4e889fcd5272858db97764a279da1e | [log] [tgz] |
---|---|---|
author | monnerat <monnerat@users.noreply.github.com> | Sun Nov 27 19:39:00 2016 +0100 |
committer | Alexander Lamaison <github@lammy.co.uk> | Sun Nov 27 18:39:00 2016 +0000 |
tree | 6d6764264e4116b141648c4f85548a133c5b74c5 | |
parent | 5abceec5719dddfa9252aa4b5da1acb81392b386 [diff] |
Implement Diffie-Hellman computations in crypto backends. (#149) Not all backends feature the low level API needed to compute a Diffie-Hellman secret, but some of them directly implement Diffie-Hellman support with opaque private data. The later approach is now generalized and backends are responsible for all Diffie Hellman computations. As a side effect, procedures/macros _libssh2_bn_rand and _libssh2_bn_mod_exp are no longer needed outside the backends.