* options.h, common-kex.c: fix support of 4096 byte host keys

--HG--
extra : convert_revision : 096f29c430c23f0140f0cf272942a13046483ec6
This commit is contained in:
Matt Johnston
2005-11-30 10:11:24 +00:00
parent 4a4e1b49ec
commit 736f370dce
2 changed files with 32 additions and 24 deletions

View File

@@ -306,10 +306,14 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */
#define MAX_STRING_LEN 1400 /* ~= MAX_PROPOSED_ALGO * MAX_NAME_LEN, also
is the max length for a password etc */
/* For a 4096 bit DSS key, empirically determined to be 1590 bytes */
#define MAX_PUBKEY_SIZE 1600
/* For a 4096 bit DSS key, empirically determined to be 1590 bytes */
#define MAX_PRIVKEY_SIZE 1600
/* For a 4096 bit DSS key, empirically determined */
#define MAX_PUBKEY_SIZE 1700
/* For a 4096 bit DSS key, empirically determined */
#define MAX_PRIVKEY_SIZE 1700
/* The maximum size of the bignum portion of the kexhash buffer */
/* Sect. 8 of the transport draft, K_S + e + f + K */
#define KEXHASHBUF_MAX_INTS (1700 + 130 + 130 + 130)
#define DROPBEAR_MAX_SOCKS 2 /* IPv4, IPv6 are all we'll get for now. Revisit
in a few years time.... */