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 4423 by doda, Fri Apr 8 07:34:37 2011 UTC revision 4425 by doda, Fri Apr 8 08:31:26 2011 UTC
# Line 336  typedef enum { Line 336  typedef enum {
336          HMAC_SHA1_96,          HMAC_SHA1_96,
337          HMAC_MD5_96,          HMAC_MD5_96,
338          HMAC_RIPEMD160,          HMAC_RIPEMD160,
339    #if 0   // HMAC-SHA2 support
340            HMAC_SHA2_256,
341            HMAC_SHA2_256_96,
342            HMAC_SHA2_512,
343            HMAC_SHA2_512_96,
344    #endif  // HMAC-SHA2 support
345          HMAC_UNKNOWN,          HMAC_UNKNOWN,
346          HMAC_MAX = HMAC_UNKNOWN,          HMAC_MAX = HMAC_UNKNOWN,
347  } hmac_type;  } hmac_type;
# Line 348  typedef struct ssh2_mac { Line 354  typedef struct ssh2_mac {
354  } ssh2_mac_t;  } ssh2_mac_t;
355    
356  static ssh2_mac_t ssh2_macs[] = {  static ssh2_mac_t ssh2_macs[] = {
357          {HMAC_SHA1,      "hmac-sha1",                  EVP_sha1,      0},          {HMAC_SHA1,        "hmac-sha1",                  EVP_sha1,      0},
358          {HMAC_MD5,       "hmac-md5",                   EVP_md5,       0},          {HMAC_MD5,         "hmac-md5",                   EVP_md5,       0},
359          {HMAC_SHA1_96,   "hmac-sha1-96",               EVP_sha1,      96},          {HMAC_SHA1_96,     "hmac-sha1-96",               EVP_sha1,      96},
360          {HMAC_MD5_96,    "hmac-md5-96",                EVP_md5,       96},          {HMAC_MD5_96,      "hmac-md5-96",                EVP_md5,       96},
361          {HMAC_RIPEMD160, "hmac-ripemd160@openssh.com", EVP_ripemd160, 0},          {HMAC_RIPEMD160,   "hmac-ripemd160@openssh.com", EVP_ripemd160, 0},
362          {HMAC_NONE,      NULL,                         NULL,          0},  #if 0   // HMAC-SHA2 support
363            {HMAC_SHA2_256,    "hmac-sha2-256",              EVP_sha256,    0},
364            {HMAC_SHA2_256_96, "hmac-sha2-256-96",           EVP_sha256,    96},
365            {HMAC_SHA2_512,    "hmac-sha2-512",              EVP_sha512,    0},
366            {HMAC_SHA2_512_96, "hmac-sha2-512-96",           EVP_sha512,    96},
367    #endif  // HMAC-SHA2 support
368            {HMAC_NONE,        NULL,                         NULL,          0},
369  };  };
370    
371    

Legend:
Removed from v.4423  
changed lines
  Added in v.4425

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