Mercurial > dropbear
diff options.h @ 257:63601217f5ab
* options.h, common-kex.c: fix support of 4096 byte host keys
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 30 Nov 2005 10:11:24 +0000 |
parents | efbaf6b03837 |
children | e37b160c414c |
line wrap: on
line diff
--- a/options.h Wed Nov 30 06:32:26 2005 +0000 +++ b/options.h Wed Nov 30 10:11:24 2005 +0000 @@ -306,10 +306,14 @@ #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.... */