comparison common-algo.c @ 227:ad1b24e39bf3

Make a variables static - Patch from Andreas Mohr
author Matt Johnston <matt@ucc.asn.au>
date Wed, 24 Aug 2005 16:43:29 +0000
parents e972be139cb5
children 5e4110bb753a
comparison
equal deleted inserted replaced
226:9a9c6d633972 227:ad1b24e39bf3
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 34
35 #ifdef DROPBEAR_AES128_CBC 35 #ifdef DROPBEAR_AES128_CBC
36 const struct dropbear_cipher dropbear_aes128 = 36 static const struct dropbear_cipher dropbear_aes128 =
37 {&aes_desc, 16, 16}; 37 {&aes_desc, 16, 16};
38 #endif 38 #endif
39 #ifdef DROPBEAR_BLOWFISH_CBC 39 #ifdef DROPBEAR_BLOWFISH_CBC
40 const struct dropbear_cipher dropbear_blowfish = 40 static const struct dropbear_cipher dropbear_blowfish =
41 {&blowfish_desc, 16, 8}; 41 {&blowfish_desc, 16, 8};
42 #endif 42 #endif
43 #ifdef DROPBEAR_TWOFISH128_CBC 43 #ifdef DROPBEAR_TWOFISH128_CBC
44 const struct dropbear_cipher dropbear_twofish128 = 44 static const struct dropbear_cipher dropbear_twofish128 =
45 {&twofish_desc, 16, 16}; 45 {&twofish_desc, 16, 16};
46 #endif 46 #endif
47 #ifdef DROPBEAR_3DES_CBC 47 #ifdef DROPBEAR_3DES_CBC
48 const struct dropbear_cipher dropbear_3des = 48 static const struct dropbear_cipher dropbear_3des =
49 {&des3_desc, 24, 8}; 49 {&des3_desc, 24, 8};
50 #endif 50 #endif
51 51
52 /* used to indicate no encryption, as defined in rfc2410 */ 52 /* used to indicate no encryption, as defined in rfc2410 */
53 const struct dropbear_cipher dropbear_nocipher = 53 const struct dropbear_cipher dropbear_nocipher =
55 55
56 /* Mapping of ssh hashes to libtomcrypt hashes, including keysize etc. 56 /* Mapping of ssh hashes to libtomcrypt hashes, including keysize etc.
57 {&hash_desc, keysize, hashsize} */ 57 {&hash_desc, keysize, hashsize} */
58 58
59 #ifdef DROPBEAR_SHA1_HMAC 59 #ifdef DROPBEAR_SHA1_HMAC
60 const struct dropbear_hash dropbear_sha1 = 60 static const struct dropbear_hash dropbear_sha1 =
61 {&sha1_desc, 20, 20}; 61 {&sha1_desc, 20, 20};
62 #endif 62 #endif
63 #ifdef DROPBEAR_MD5_HMAC 63 #ifdef DROPBEAR_MD5_HMAC
64 const struct dropbear_hash dropbear_md5 = 64 static const struct dropbear_hash dropbear_md5 =
65 {&md5_desc, 16, 16}; 65 {&md5_desc, 16, 16};
66 #endif 66 #endif
67 67
68 const struct dropbear_hash dropbear_nohash = 68 const struct dropbear_hash dropbear_nohash =
69 {NULL, 16, 0}; /* used initially */ 69 {NULL, 16, 0}; /* used initially */