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 6118 by maya, Thu Nov 12 14:33:12 2015 UTC revision 6120 by maya, Fri Nov 13 05:06:34 2015 UTC
# Line 535  enum fp_rep { Line 535  enum fp_rep {
535          SSH_FP_BUBBLEBABBLE,          SSH_FP_BUBBLEBABBLE,
536          SSH_FP_RANDOMART          SSH_FP_RANDOMART
537  };  };
538    /*
539  enum fp_type {  enum fp_type {
540          SSH_FP_MD5,          SSH_FP_MD5,
541          SSH_FP_SHA1,          SSH_FP_SHA1,
542          SSH_FP_SHA256          SSH_FP_SHA256
543  };  };
544    */
545    typedef enum {
546            SSH_DIGEST_MD5,
547            SSH_DIGEST_RIPEMD160,
548            SSH_DIGEST_SHA1,
549            SSH_DIGEST_SHA256,
550            SSH_DIGEST_SHA384,
551            SSH_DIGEST_SHA512,
552            SSH_DIGEST_MAX,
553    } digest_algorithm;
554    
555    typedef struct ssh_digest {
556            digest_algorithm id;
557            const char *name;
558    } ssh_digest_t;
559    
560    /* NB. Indexed directly by algorithm number */
561    static ssh_digest_t ssh_digests[] = {
562            { SSH_DIGEST_MD5,       "MD5" },
563            { SSH_DIGEST_RIPEMD160, "RIPEMD160" },
564            { SSH_DIGEST_SHA1,      "SHA1" },
565            { SSH_DIGEST_SHA256,    "SHA256" },
566            { SSH_DIGEST_SHA384,    "SHA384" },
567            { SSH_DIGEST_SHA512,    "SHA512" },
568            { SSH_DIGEST_MAX, NULL },
569    };
570    
571  enum scp_dir {  enum scp_dir {
572          TOREMOTE, FROMREMOTE,          TOREMOTE, FROMREMOTE,
# Line 690  const EVP_MD* get_ssh2_mac_EVP_MD(hmac_t Line 716  const EVP_MD* get_ssh2_mac_EVP_MD(hmac_t
716  int get_ssh2_mac_truncatebits(hmac_type type);  int get_ssh2_mac_truncatebits(hmac_type type);
717  char* get_ssh2_comp_name(compression_type type);  char* get_ssh2_comp_name(compression_type type);
718  char* get_ssh_keytype_name(ssh_keytype type);  char* get_ssh_keytype_name(ssh_keytype type);
719    char* get_digest_algorithm_name(digest_algorithm id);
720  int get_cipher_discard_len(SSHCipher cipher);  int get_cipher_discard_len(SSHCipher cipher);
721  void ssh_heartbeat_lock_initialize(void);  void ssh_heartbeat_lock_initialize(void);
722  void ssh_heartbeat_lock_finalize(void);  void ssh_heartbeat_lock_finalize(void);

Legend:
Removed from v.6118  
changed lines
  Added in v.6120

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