Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/ttssh2/ttxssh/cipher.c

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

revision 9694 by nmaya, Sun Jan 16 15:50:48 2022 UTC revision 10529 by zmatsuo, Sat Jan 21 17:41:55 2023 UTC
# Line 37  Line 37 
37    
38  #include "codeconv.h"  #include "codeconv.h"
39    
40  // from cipher-3des.c  #include "cipher-3des1.h"
41  extern const EVP_CIPHER* evp_ssh1_3des(void);  #include "cipher-ctr.h"
42    
43  static const struct ssh2cipher ssh2_ciphers[] = {  static const struct ssh2cipher ssh2_ciphers[] = {
44          {SSH2_CIPHER_3DES_CBC,        "3des-cbc",         8, 24,    0, 0, 0, EVP_des_ede3_cbc},     // RFC4253          {SSH2_CIPHER_3DES_CBC,        "3des-cbc",         8, 24,    0, 0, 0, EVP_des_ede3_cbc},     // RFC4253
# Line 97  int get_cipher_id(const struct ssh2ciphe Line 97  int get_cipher_id(const struct ssh2ciphe
97  u_int get_cipher_block_size(const struct ssh2cipher *cipher)  u_int get_cipher_block_size(const struct ssh2cipher *cipher)
98  {  {
99          u_int blocksize = 0;          u_int blocksize = 0;
100            
101          if (cipher) {          if (cipher) {
102                  blocksize = cipher->block_size;                  blocksize = cipher->block_size;
103          }          }
# Line 202  char *get_cipher_name(int cipher_id) Line 202  char *get_cipher_name(int cipher_id)
202          case SSH_CIPHER_BLOWFISH:          case SSH_CIPHER_BLOWFISH:
203                  return "Blowfish (256 key bits)";                  return "Blowfish (256 key bits)";
204    
205          // SSH2          // SSH2
206          case SSH2_CIPHER_3DES_CBC:          case SSH2_CIPHER_3DES_CBC:
207                  return "3des-cbc";                  return "3des-cbc";
208          case SSH2_CIPHER_AES128_CBC:          case SSH2_CIPHER_AES128_CBC:

Legend:
Removed from v.9694  
changed lines
  Added in v.10529

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