Browse Subversion Repository
Diff of /trunk/ttssh2/ttxssh/cipher.c
Parent Directory
| Revision Log
| Patch
| 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 |
| 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 |
} |
} |
| 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 |
|
|
| |