diff options
author | Matt Johnston <matt@ucc.asn.au> | 2007-02-04 10:32:59 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2007-02-04 10:32:59 +0000 |
commit | fd304d763ace5074dc8e26b29fecc88d0d7ea006 (patch) | |
tree | f54c32bfbe83b44f715ab47a5863f84f585cfbe5 /common-kex.c | |
parent | d9aeb2773e236e662c8b493f4bcee978f9908d7c (diff) | |
parent | 60d4cd599621a843095a0948c58c40b0ba286de2 (diff) |
merge of 'b1dd3b94e60a07a176dba2b035ac79968595990a'
and 'bcb33fce2fad01a7626598209d43af3571bd86f0'
--HG--
extra : convert_revision : 691c56da3db2685f58ea53540a73c1b79e7df9cd
Diffstat (limited to 'common-kex.c')
-rw-r--r-- | common-kex.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/common-kex.c b/common-kex.c index af39d1a..dd36cd1 100644 --- a/common-kex.c +++ b/common-kex.c @@ -217,12 +217,10 @@ static void kexinitialise() { * already initialised hash_state hs, which should already have processed * the dh_K and hash, since these are common. X is the letter 'A', 'B' etc. * out must have at least min(SHA1_HASH_SIZE, outlen) bytes allocated. - * The output will only be expanded once, since that is all that is required - * (for 3DES and SHA, with 24 and 20 bytes respectively). + * The output will only be expanded once, as we are assured that + * outlen <= 2*SHA1_HASH_SIZE for all known hashes. * - * See Section 5.2 of the IETF secsh Transport Draft for details */ - -/* Duplicated verbatim from kex.c --mihnea */ + * See Section 7.2 of rfc4253 (ssh transport) for details */ static void hashkeys(unsigned char *out, int outlen, const hash_state * hs, const unsigned char X) { |