Browse Subversion Repository
Diff of /trunk/ttssh2/ttxssh/crypt.h
Parent Directory
| Revision Log
| Patch
| 82 |
} CRYPTDetectAttack; |
} CRYPTDetectAttack; |
| 83 |
|
|
| 84 |
typedef struct { |
typedef struct { |
| 85 |
RSA FAR * RSA_key; |
RSA *RSA_key; |
| 86 |
} CRYPTPublicKey; |
} CRYPTPublicKey; |
| 87 |
|
|
|
typedef struct _CRYPTKeyPair { |
|
|
RSA FAR * RSA_key; |
|
|
DSA *DSA_key; |
|
|
} CRYPTKeyPair; |
|
|
|
|
| 88 |
typedef union { |
typedef union { |
| 89 |
Cipher3DESState c3DES; |
Cipher3DESState c3DES; |
| 90 |
CipherIDEAState cIDEA; |
CipherIDEAState cIDEA; |
| 131 |
void CRYPT_set_client_cookie(PTInstVar pvar, unsigned char FAR * cookie); |
void CRYPT_set_client_cookie(PTInstVar pvar, unsigned char FAR * cookie); |
| 132 |
#define CRYPT_get_server_cookie(pvar) ((pvar)->crypt_state.server_cookie) |
#define CRYPT_get_server_cookie(pvar) ((pvar)->crypt_state.server_cookie) |
| 133 |
|
|
|
void CRYPT_free_key_pair(CRYPTKeyPair FAR * key_pair); |
|
| 134 |
void CRYPT_free_public_key(CRYPTPublicKey FAR * key); |
void CRYPT_free_public_key(CRYPTPublicKey FAR * key); |
| 135 |
|
|
| 136 |
BOOL CRYPT_set_server_RSA_key(PTInstVar pvar, |
BOOL CRYPT_set_server_RSA_key(PTInstVar pvar, |
| 165 |
BOOL CRYPT_detect_attack(PTInstVar pvar, unsigned char FAR * buf, int bytes); |
BOOL CRYPT_detect_attack(PTInstVar pvar, unsigned char FAR * buf, int bytes); |
| 166 |
int CRYPT_passphrase_decrypt(int cipher, char FAR * passphrase, char FAR * buf, int len); |
int CRYPT_passphrase_decrypt(int cipher, char FAR * passphrase, char FAR * buf, int len); |
| 167 |
RSA FAR *make_key(PTInstVar pvar, |
RSA FAR *make_key(PTInstVar pvar, |
| 168 |
int bits, unsigned char FAR * exp, |
int bits, unsigned char FAR * exp, |
| 169 |
unsigned char FAR * mod); |
unsigned char FAR * mod); |
| 170 |
|
|
| 171 |
#endif |
#endif |
|
|
Legend:
| Removed from v.3227 |
|
| changed lines |
| |
Added in v.4307 |
|
|
| |