Mercurial > dropbear
comparison common-algo.c @ 409:0e69e948caba
Add comments about requiring keysize <= 2*SHA1_HASH_SIZE
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 04 Feb 2007 10:31:48 +0000 |
parents | 89ace56293f6 |
children | d58c478bd399 |
comparison
equal
deleted
inserted
replaced
408:28b10e93685c | 409:0e69e948caba |
---|---|
29 /* This file (algo.c) organises the ciphers which can be used, and is used to | 29 /* This file (algo.c) organises the ciphers which can be used, and is used to |
30 * decide which ciphers/hashes/compression/signing to use during key exchange*/ | 30 * decide which ciphers/hashes/compression/signing to use during key exchange*/ |
31 | 31 |
32 /* Mappings for ciphers, parameters are | 32 /* Mappings for ciphers, parameters are |
33 {&cipher_desc, keysize, blocksize} */ | 33 {&cipher_desc, keysize, blocksize} */ |
34 /* NOTE: if keysize > 2*SHA1_HASH_SIZE, code such as hashkeys() | |
35 needs revisiting */ | |
34 | 36 |
35 #ifdef DROPBEAR_AES256_CBC | 37 #ifdef DROPBEAR_AES256_CBC |
36 static const struct dropbear_cipher dropbear_aes256 = | 38 static const struct dropbear_cipher dropbear_aes256 = |
37 {&aes_desc, 32, 16}; | 39 {&aes_desc, 32, 16}; |
38 #endif | 40 #endif |