Displaying 2 results from an estimated 2 matches for "server_host_priv".
2013 Jun 25
1
RFC: encrypted hostkeys patch
..., u_char *, u_int);
void (*kex[KEX_MAX])(Kex *);
};
diff --git a/kexdhs.c b/kexdhs.c
index 1512863..f6d43f2 100644
--- a/kexdhs.c
+++ b/kexdhs.c
@@ -80,9 +80,6 @@ kexdh_server(Kex *kex)
if (server_host_public == NULL)
fatal("Unsupported hostkey type %d", kex->hostkey_type);
server_host_private = kex->load_host_private_key(kex->hostkey_type);
- if (server_host_private == NULL)
- fatal("Missing private key for hostkey type %d",
- kex->hostkey_type);
/* key, cert */
if ((dh_client_pub = BN_new()) == NULL)
@@ -144,9 +141,8 @@ kexdh_server(Kex *kex)
}
/...
2013 Sep 24
9
[PATCH] curve25519-sha256@libssh.org key exchange proposal
...lude "monitor_wrap.h"
+
+#include <nacl/crypto_scalarmult_curve25519.h>
+#define CURVE25519_PUBKEY_SIZE crypto_scalarmult_curve25519_BYTES
+#define CURVE25519_PRIVKEY_SIZE crypto_scalarmult_curve25519_SCALARBYTES
+
+void
+kexc25519_server(Kex *kex)
+{
+ BIGNUM *shared_secret;
+ Key *server_host_private, *server_host_public;
+ u_char *server_host_key_blob = NULL, *signature = NULL;
+ u_char server_key[CURVE25519_PRIVKEY_SIZE];
+ u_char *client_pubkey = NULL;
+ u_char server_pubkey[CURVE25519_PUBKEY_SIZE];
+ u_char shared_secret_raw[CURVE25519_PUBKEY_SIZE];
+ u_char *...