Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4569 by doda, Thu Aug 4 06:00:17 2011 UTC revision 4592 by maya, Sun Aug 21 13:44:23 2011 UTC
# Line 257  typedef struct ssh2_host_key { Line 257  typedef struct ssh2_host_key {
257  } ssh2_host_key_t;  } ssh2_host_key_t;
258    
259  static ssh2_host_key_t ssh2_host_key[] = {  static ssh2_host_key_t ssh2_host_key[] = {
260          {KEY_RSA1,     "ssh-rsa1"},  // for SSH1 only          {KEY_RSA1,     "ssh-rsa1"},            // for SSH1 only
261          {KEY_RSA,      "ssh-rsa"},          {KEY_RSA,      "ssh-rsa"},             // RFC4253
262          {KEY_DSA,      "ssh-dss"},          {KEY_DSA,      "ssh-dss"},             // RFC4253
263          {KEY_ECDSA256, "ecdsa-sha2-nistp256"},          {KEY_ECDSA256, "ecdsa-sha2-nistp256"}, // RFC5656
264          {KEY_ECDSA384, "ecdsa-sha2-nistp384"},          {KEY_ECDSA384, "ecdsa-sha2-nistp384"}, // RFC5656
265          {KEY_ECDSA521, "ecdsa-sha2-nistp521"},          {KEY_ECDSA521, "ecdsa-sha2-nistp521"}, // RFC5656
266          {KEY_UNSPEC,   "ssh-unknown"},          {KEY_UNSPEC,   "ssh-unknown"},
267          {KEY_NONE,     NULL},          {KEY_NONE,     NULL},
268  };  };
# Line 285  typedef struct ssh2_cipher { Line 285  typedef struct ssh2_cipher {
285  } ssh2_cipher_t;  } ssh2_cipher_t;
286    
287  static ssh2_cipher_t ssh2_ciphers[] = {  static ssh2_cipher_t ssh2_ciphers[] = {
288          {SSH2_CIPHER_3DES_CBC,        "3des-cbc",         8, 24,    0, EVP_des_ede3_cbc},          {SSH2_CIPHER_3DES_CBC,        "3des-cbc",         8, 24,    0, EVP_des_ede3_cbc},     // RFC4253
289          {SSH2_CIPHER_AES128_CBC,      "aes128-cbc",      16, 16,    0, EVP_aes_128_cbc},          {SSH2_CIPHER_AES128_CBC,      "aes128-cbc",      16, 16,    0, EVP_aes_128_cbc},      // RFC4253
290          {SSH2_CIPHER_AES192_CBC,      "aes192-cbc",      16, 24,    0, EVP_aes_192_cbc},          {SSH2_CIPHER_AES192_CBC,      "aes192-cbc",      16, 24,    0, EVP_aes_192_cbc},      // RFC4253
291          {SSH2_CIPHER_AES256_CBC,      "aes256-cbc",      16, 32,    0, EVP_aes_256_cbc},          {SSH2_CIPHER_AES256_CBC,      "aes256-cbc",      16, 32,    0, EVP_aes_256_cbc},      // RFC4253
292          {SSH2_CIPHER_BLOWFISH_CBC,    "blowfish-cbc",     8, 16,    0, EVP_bf_cbc},          {SSH2_CIPHER_BLOWFISH_CBC,    "blowfish-cbc",     8, 16,    0, EVP_bf_cbc},           // RFC4253
293          {SSH2_CIPHER_AES128_CTR,      "aes128-ctr",      16, 16,    0, evp_aes_128_ctr},          {SSH2_CIPHER_AES128_CTR,      "aes128-ctr",      16, 16,    0, evp_aes_128_ctr},      // RFC4344
294          {SSH2_CIPHER_AES192_CTR,      "aes192-ctr",      16, 24,    0, evp_aes_128_ctr},          {SSH2_CIPHER_AES192_CTR,      "aes192-ctr",      16, 24,    0, evp_aes_128_ctr},      // RFC4344
295          {SSH2_CIPHER_AES256_CTR,      "aes256-ctr",      16, 32,    0, evp_aes_128_ctr},          {SSH2_CIPHER_AES256_CTR,      "aes256-ctr",      16, 32,    0, evp_aes_128_ctr},      // RFC4344
296          {SSH2_CIPHER_ARCFOUR,         "arcfour",          8, 16,    0, EVP_rc4},          {SSH2_CIPHER_ARCFOUR,         "arcfour",          8, 16,    0, EVP_rc4},              // RFC4253
297          {SSH2_CIPHER_ARCFOUR128,      "arcfour128",       8, 16, 1536, EVP_rc4},          {SSH2_CIPHER_ARCFOUR128,      "arcfour128",       8, 16, 1536, EVP_rc4},              // RFC4345
298          {SSH2_CIPHER_ARCFOUR256,      "arcfour256",       8, 32, 1536, EVP_rc4},          {SSH2_CIPHER_ARCFOUR256,      "arcfour256",       8, 32, 1536, EVP_rc4},              // RFC4345
299          {SSH2_CIPHER_CAST128_CBC,     "cast128-cbc",      8, 16,    0, EVP_cast5_cbc},          {SSH2_CIPHER_CAST128_CBC,     "cast128-cbc",      8, 16,    0, EVP_cast5_cbc},        // RFC4253
300          {SSH2_CIPHER_3DES_CTR,        "3des-ctr",         8, 24,    0, evp_des3_ctr},          {SSH2_CIPHER_3DES_CTR,        "3des-ctr",         8, 24,    0, evp_des3_ctr},         // RFC4344
301          {SSH2_CIPHER_BLOWFISH_CTR,    "blowfish-ctr",     8, 16,    0, evp_bf_ctr},          {SSH2_CIPHER_BLOWFISH_CTR,    "blowfish-ctr",     8, 16,    0, evp_bf_ctr},           // RFC4344
302          {SSH2_CIPHER_CAST128_CTR,     "cast128-ctr",      8, 16,    0, evp_cast5_ctr},          {SSH2_CIPHER_CAST128_CTR,     "cast128-ctr",      8, 16,    0, evp_cast5_ctr},        // RFC4344
303  #ifdef WITH_CAMELLIA_DRAFT  #ifdef WITH_CAMELLIA_DRAFT
304          {SSH2_CIPHER_CAMELLIA128_CBC, "camellia128-cbc", 16, 16,    0, EVP_camellia_128_cbc},          {SSH2_CIPHER_CAMELLIA128_CBC, "camellia128-cbc", 16, 16,    0, EVP_camellia_128_cbc}, // draft-kanno-secsh-camellia-02
305          {SSH2_CIPHER_CAMELLIA192_CBC, "camellia192-cbc", 16, 24,    0, EVP_camellia_192_cbc},          {SSH2_CIPHER_CAMELLIA192_CBC, "camellia192-cbc", 16, 24,    0, EVP_camellia_192_cbc}, // draft-kanno-secsh-camellia-02
306          {SSH2_CIPHER_CAMELLIA256_CBC, "camellia256-cbc", 16, 32,    0, EVP_camellia_256_cbc},          {SSH2_CIPHER_CAMELLIA256_CBC, "camellia256-cbc", 16, 32,    0, EVP_camellia_256_cbc}, // draft-kanno-secsh-camellia-02
307          {SSH2_CIPHER_CAMELLIA128_CTR, "camellia128-ctr", 16, 16,    0, evp_camellia_128_ctr},          {SSH2_CIPHER_CAMELLIA128_CTR, "camellia128-ctr", 16, 16,    0, evp_camellia_128_ctr}, // draft-kanno-secsh-camellia-02
308          {SSH2_CIPHER_CAMELLIA192_CTR, "camellia192-ctr", 16, 24,    0, evp_camellia_128_ctr},          {SSH2_CIPHER_CAMELLIA192_CTR, "camellia192-ctr", 16, 24,    0, evp_camellia_128_ctr}, // draft-kanno-secsh-camellia-02
309          {SSH2_CIPHER_CAMELLIA256_CTR, "camellia256-ctr", 16, 32,    0, evp_camellia_128_ctr},          {SSH2_CIPHER_CAMELLIA256_CTR, "camellia256-ctr", 16, 32,    0, evp_camellia_128_ctr}, // draft-kanno-secsh-camellia-02
310  #ifdef WITH_CAMELLIA_PRIVATE  #ifdef WITH_CAMELLIA_PRIVATE
311          {SSH2_CIPHER_CAMELLIA128_CBC, "camellia128-cbc@openssh.org", 16, 16, 0, EVP_camellia_128_cbc},          {SSH2_CIPHER_CAMELLIA128_CBC, "camellia128-cbc@openssh.org", 16, 16, 0, EVP_camellia_128_cbc},
312          {SSH2_CIPHER_CAMELLIA192_CBC, "camellia192-cbc@openssh.org", 16, 24, 0, EVP_camellia_192_cbc},          {SSH2_CIPHER_CAMELLIA192_CBC, "camellia192-cbc@openssh.org", 16, 24, 0, EVP_camellia_192_cbc},
# Line 340  typedef struct ssh2_kex_algorithm { Line 340  typedef struct ssh2_kex_algorithm {
340  } ssh2_kex_algorithm_t;  } ssh2_kex_algorithm_t;
341    
342  static ssh2_kex_algorithm_t ssh2_kex_algorithms[] = {  static ssh2_kex_algorithm_t ssh2_kex_algorithms[] = {
343          {KEX_DH_GRP1_SHA1,  "diffie-hellman-group1-sha1",           EVP_sha1},          {KEX_DH_GRP1_SHA1,  "diffie-hellman-group1-sha1",           EVP_sha1},   // RFC4253
344          {KEX_DH_GRP14_SHA1, "diffie-hellman-group14-sha1",          EVP_sha1},          {KEX_DH_GRP14_SHA1, "diffie-hellman-group14-sha1",          EVP_sha1},   // RFC4253
345          {KEX_DH_GEX_SHA1,   "diffie-hellman-group-exchange-sha1",   EVP_sha1},          {KEX_DH_GEX_SHA1,   "diffie-hellman-group-exchange-sha1",   EVP_sha1},   // RFC4419
346          {KEX_DH_GEX_SHA256, "diffie-hellman-group-exchange-sha256", EVP_sha256},          {KEX_DH_GEX_SHA256, "diffie-hellman-group-exchange-sha256", EVP_sha256}, // RFC4419
347          {KEX_ECDH_SHA2_256, "ecdh-sha2-nistp256",                   EVP_sha256},          {KEX_ECDH_SHA2_256, "ecdh-sha2-nistp256",                   EVP_sha256}, // RFC5656
348          {KEX_ECDH_SHA2_384, "ecdh-sha2-nistp384",                   EVP_sha384},          {KEX_ECDH_SHA2_384, "ecdh-sha2-nistp384",                   EVP_sha384}, // RFC5656
349          {KEX_ECDH_SHA2_521, "ecdh-sha2-nistp521",                   EVP_sha512},          {KEX_ECDH_SHA2_521, "ecdh-sha2-nistp521",                   EVP_sha512}, // RFC5656
350          {KEX_DH_NONE      , NULL,                                   NULL},          {KEX_DH_NONE      , NULL,                                   NULL},
351  };  };
352    
# Line 376  typedef struct ssh2_mac { Line 376  typedef struct ssh2_mac {
376  } ssh2_mac_t;  } ssh2_mac_t;
377    
378  static ssh2_mac_t ssh2_macs[] = {  static ssh2_mac_t ssh2_macs[] = {
379          {HMAC_SHA1,        "hmac-sha1",                  EVP_sha1,      0},          {HMAC_SHA1,        "hmac-sha1",                  EVP_sha1,      0},  // RFC4253
380          {HMAC_MD5,         "hmac-md5",                   EVP_md5,       0},          {HMAC_MD5,         "hmac-md5",                   EVP_md5,       0},  // RFC4253
381          {HMAC_SHA1_96,     "hmac-sha1-96",               EVP_sha1,      96},          {HMAC_SHA1_96,     "hmac-sha1-96",               EVP_sha1,      96}, // RFC4253
382          {HMAC_MD5_96,      "hmac-md5-96",                EVP_md5,       96},          {HMAC_MD5_96,      "hmac-md5-96",                EVP_md5,       96}, // RFC4253
383          {HMAC_RIPEMD160,   "hmac-ripemd160@openssh.com", EVP_ripemd160, 0},          {HMAC_RIPEMD160,   "hmac-ripemd160@openssh.com", EVP_ripemd160, 0},
384  #ifdef WITH_HMAC_SHA2_DRAFT     // HMAC-SHA2 support  #ifdef WITH_HMAC_SHA2_DRAFT     // HMAC-SHA2 support
385          {HMAC_SHA2_256,    "hmac-sha2-256",              EVP_sha256,    0},          {HMAC_SHA2_256,    "hmac-sha2-256",              EVP_sha256,    0},  // draft-dbider-sha2-mac-for-ssh-02
386          {HMAC_SHA2_256_96, "hmac-sha2-256-96",           EVP_sha256,    96},          {HMAC_SHA2_256_96, "hmac-sha2-256-96",           EVP_sha256,    96}, // draft-dbider-sha2-mac-for-ssh-02
387          {HMAC_SHA2_512,    "hmac-sha2-512",              EVP_sha512,    0},          {HMAC_SHA2_512,    "hmac-sha2-512",              EVP_sha512,    0},  // draft-dbider-sha2-mac-for-ssh-02
388          {HMAC_SHA2_512_96, "hmac-sha2-512-96",           EVP_sha512,    96},          {HMAC_SHA2_512_96, "hmac-sha2-512-96",           EVP_sha512,    96}, // draft-dbider-sha2-mac-for-ssh-02
389  #endif  // HMAC-SHA2 support  #endif  // HMAC-SHA2 support
390          {HMAC_NONE,        NULL,                         NULL,          0},          {HMAC_NONE,        NULL,                         NULL,          0},
391  };  };
# Line 406  typedef struct ssh2_comp { Line 406  typedef struct ssh2_comp {
406  } ssh2_comp_t;  } ssh2_comp_t;
407    
408  static ssh2_comp_t ssh2_comps[] = {  static ssh2_comp_t ssh2_comps[] = {
409          {COMP_NOCOMP,  "none"},          {COMP_NOCOMP,  "none"},             // RFC4253
410          {COMP_ZLIB,    "zlib"},          {COMP_ZLIB,    "zlib"},             // RFC4253
411          {COMP_DELAYED, "zlib@openssh.com"},          {COMP_DELAYED, "zlib@openssh.com"},
412          {COMP_NONE,    NULL},          {COMP_NONE,    NULL},
413  };  };

Legend:
Removed from v.4569  
changed lines
  Added in v.4592

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26