diff options
author | Simon Tatham <anakin@pobox.com> | 2022-04-14 09:04:33 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2022-04-15 19:46:06 +0300 |
commit | e59ee9655453982fe8a99b57e34eb9eb7682bc4b (patch) | |
tree | 8859788a4791e31496995e42f8cf499830eb73d0 /defs.h | |
parent | 422a89e208910523d654db5e670433c89730c8bb (diff) |
Refactor ecdh_kex into an organised vtable.
This is already slightly nice because it lets me separate the
Weierstrass and Montgomery code more completely, without having to
have a vtable tucked into dh->extra. But more to the point, it will
allow completely different kex methods to fit into the same framework
later.
To that end, I've moved more of the descriptive message generation
into the vtable, and also provided the constructor with a flag that
will let it do different things in client and server.
Also, following on from a previous commit, I've arranged that the new
API returns arbitrary binary data for the exchange hash, rather than
an mp_int. An upcoming implementation of this interface will want to
return an encoded string instead of an encoded mp_int.
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -167,6 +167,7 @@ typedef struct ssh_cipher ssh_cipher; typedef struct ssh2_ciphers ssh2_ciphers; typedef struct dh_ctx dh_ctx; typedef struct ecdh_key ecdh_key; +typedef struct ecdh_keyalg ecdh_keyalg; typedef struct dlgparam dlgparam; |