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 6968 by doda, Thu Nov 2 11:37:37 2017 UTC revision 6969 by doda, Thu Nov 2 11:37:41 2017 UTC
# Line 465  typedef enum { Line 465  typedef enum {
465          HMAC_SHA2_256_96,          HMAC_SHA2_256_96,
466          HMAC_SHA2_512,          HMAC_SHA2_512,
467          HMAC_SHA2_512_96,          HMAC_SHA2_512_96,
468            HMAC_SHA1_EtM,
469            HMAC_MD5_EtM,
470            HMAC_SHA1_96_EtM,
471            HMAC_MD5_96_EtM,
472            HMAC_RIPEMD160_EtM,
473            HMAC_SHA2_256_EtM,
474            HMAC_SHA2_512_EtM,
475          HMAC_UNKNOWN,          HMAC_UNKNOWN,
476          HMAC_MAX = HMAC_UNKNOWN,          HMAC_MAX = HMAC_UNKNOWN,
477  } hmac_type;  } hmac_type;
# Line 474  typedef struct ssh2_mac { Line 481  typedef struct ssh2_mac {
481          char *name;          char *name;
482          const EVP_MD *(*evp_md)(void);          const EVP_MD *(*evp_md)(void);
483          int truncatebits;          int truncatebits;
484            int etm;
485  } ssh2_mac_t;  } ssh2_mac_t;
486    
487  static ssh2_mac_t ssh2_macs[] = {  static ssh2_mac_t ssh2_macs[] = {
488          {HMAC_SHA1,        "hmac-sha1",                  EVP_sha1,      0},  // RFC4253          {HMAC_SHA1,         "hmac-sha1",                     EVP_sha1,      0,  0}, // RFC4253
489          {HMAC_MD5,         "hmac-md5",                   EVP_md5,       0},  // RFC4253          {HMAC_MD5,          "hmac-md5",                      EVP_md5,       0,  0}, // RFC4253
490          {HMAC_SHA1_96,     "hmac-sha1-96",               EVP_sha1,      96}, // RFC4253          {HMAC_SHA1_96,      "hmac-sha1-96",                  EVP_sha1,      96, 0}, // RFC4253
491          {HMAC_MD5_96,      "hmac-md5-96",                EVP_md5,       96}, // RFC4253          {HMAC_MD5_96,       "hmac-md5-96",                   EVP_md5,       96, 0}, // RFC4253
492          {HMAC_RIPEMD160,   "hmac-ripemd160@openssh.com", EVP_ripemd160, 0},          {HMAC_RIPEMD160,    "hmac-ripemd160@openssh.com",    EVP_ripemd160, 0,  0},
493          {HMAC_SHA2_256,    "hmac-sha2-256",              EVP_sha256,    0},  // RFC6668          {HMAC_SHA2_256,     "hmac-sha2-256",                 EVP_sha256,    0,  0}, // RFC6668
494  //      {HMAC_SHA2_256_96, "hmac-sha2-256-96",           EVP_sha256,    96}, // draft-dbider-sha2-mac-for-ssh-05, deleted at 06  //      {HMAC_SHA2_256_96,  "hmac-sha2-256-96",              EVP_sha256,    96, 0}, // draft-dbider-sha2-mac-for-ssh-05, deleted at 06
495          {HMAC_SHA2_512,    "hmac-sha2-512",              EVP_sha512,    0},  // RFC6668          {HMAC_SHA2_512,     "hmac-sha2-512",                 EVP_sha512,    0,  0}, // RFC6668
496  //      {HMAC_SHA2_512_96, "hmac-sha2-512-96",           EVP_sha512,    96}, // draft-dbider-sha2-mac-for-ssh-05, deleted at 06  //      {HMAC_SHA2_512_96,  "hmac-sha2-512-96",              EVP_sha512,    96, 0}, // draft-dbider-sha2-mac-for-ssh-05, deleted at 06
497          {HMAC_NONE,        NULL,                         NULL,          0},          {HMAC_SHA1_EtM,     "hmac-sha1-etm@openssh.com",     EVP_sha1,      0,  1},
498            {HMAC_MD5_EtM,      "hmac-md5-etm@openssh.com",      EVP_md5,       0,  1},
499            {HMAC_RIPEMD160_EtM,"hmac-ripemd160-etm@openssh.com",EVP_ripemd160, 0,  1},
500            {HMAC_SHA2_256_EtM, "hmac-sha2-256-etm@openssh.com", EVP_sha256,    0,  1},
501            {HMAC_SHA2_512_EtM, "hmac-sha2-512-etm@openssh.com", EVP_sha512,    0,  1},
502            {HMAC_NONE,         NULL,                            NULL,          0,  0},
503  };  };
504    
505    
# Line 526  struct Mac { Line 539  struct Mac {
539          int             mac_len;          int             mac_len;
540          u_char          *key;          u_char          *key;
541          int             key_len;          int             key_len;
542            int             etm;
543  };  };
544    
545  struct Comp {  struct Comp {
# Line 697  BOOL SSH_handle_server_ID(PTInstVar pvar Line 711  BOOL SSH_handle_server_ID(PTInstVar pvar
711     'data' points to the start of the packet data (the length field)     'data' points to the start of the packet data (the length field)
712  */  */
713  void SSH_handle_packet1(PTInstVar pvar, char *data, int len, int padding);  void SSH_handle_packet1(PTInstVar pvar, char *data, int len, int padding);
714  void SSH_handle_packet2(PTInstVar pvar, char *data, int len, int padding);  void SSH_handle_packet2(PTInstVar pvar, char *data, int len, int padding, int etm);
715  void SSH_notify_win_size(PTInstVar pvar, int cols, int rows);  void SSH_notify_win_size(PTInstVar pvar, int cols, int rows);
716  void SSH_notify_user_name(PTInstVar pvar);  void SSH_notify_user_name(PTInstVar pvar);
717  void SSH_notify_cred(PTInstVar pvar);  void SSH_notify_cred(PTInstVar pvar);

Legend:
Removed from v.6968  
changed lines
  Added in v.6969

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