Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/ttssh2/ttxssh/crypt.h

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

revision 4307 by maya, Tue Feb 15 09:00:01 2011 UTC revision 6714 by doda, Fri May 12 12:41:49 2017 UTC
# Line 36  See LICENSE.TXT for the license. Line 36  See LICENSE.TXT for the license.
36    
37  #include <openssl/rsa.h>  #include <openssl/rsa.h>
38  #include <openssl/des.h>  #include <openssl/des.h>
 #include <openssl/idea.h>  
 #include <openssl/rc4.h>  
39  #include <openssl/blowfish.h>  #include <openssl/blowfish.h>
40    
41  #define SSH_SESSION_KEY_LENGTH    32  #define SSH_SESSION_KEY_LENGTH    32
# Line 58  typedef struct { Line 56  typedef struct {
56  } Cipher3DESState;  } Cipher3DESState;
57    
58  typedef struct {  typedef struct {
   IDEA_KEY_SCHEDULE k;  
   unsigned char ivec[8];  
 } CipherIDEAState;  
   
 typedef struct {  
59    DES_key_schedule k;    DES_key_schedule k;
60    DES_cblock ivec;    DES_cblock ivec;
61  } CipherDESState;  } CipherDESState;
62    
63  typedef struct {  typedef struct {
   RC4_KEY k;  
 } CipherRC4State;  
   
 typedef struct {  
64    BF_KEY k;    BF_KEY k;
65    unsigned char ivec[8];    unsigned char ivec[8];
66  } CipherBlowfishState;  } CipherBlowfishState;
# Line 87  typedef struct { Line 76  typedef struct {
76    
77  typedef union {  typedef union {
78    Cipher3DESState c3DES;    Cipher3DESState c3DES;
   CipherIDEAState cIDEA;  
79    CipherDESState cDES;    CipherDESState cDES;
   CipherRC4State cRC4;  
80    CipherBlowfishState cBlowfish;    CipherBlowfishState cBlowfish;
81  } CRYPTCipherState;  } CRYPTCipherState;
82    

Legend:
Removed from v.4307  
changed lines
  Added in v.6714

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