Browse Subversion Repository
Diff of /trunk/ttssh2/ttxssh/crypt.h
Parent Directory
| Revision Log
| Patch
| 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 |
| 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; |
| 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 |
|
|
|