version 1.86, 2013/01/12 11:22:04 |
version 1.87, 2013/01/26 06:11:05 |
|
|
{ "aes128-ctr", SSH_CIPHER_SSH2, 16, 16, 0, 0, 0, 0, EVP_aes_128_ctr }, |
{ "aes128-ctr", SSH_CIPHER_SSH2, 16, 16, 0, 0, 0, 0, EVP_aes_128_ctr }, |
{ "aes192-ctr", SSH_CIPHER_SSH2, 16, 24, 0, 0, 0, 0, EVP_aes_192_ctr }, |
{ "aes192-ctr", SSH_CIPHER_SSH2, 16, 24, 0, 0, 0, 0, EVP_aes_192_ctr }, |
{ "aes256-ctr", SSH_CIPHER_SSH2, 16, 32, 0, 0, 0, 0, EVP_aes_256_ctr }, |
{ "aes256-ctr", SSH_CIPHER_SSH2, 16, 32, 0, 0, 0, 0, EVP_aes_256_ctr }, |
{ "acss@openssh.org", |
|
SSH_CIPHER_SSH2, 16, 5, 0, 0, 0, 0, EVP_acss }, |
|
{ "aes128-gcm@openssh.com", |
{ "aes128-gcm@openssh.com", |
SSH_CIPHER_SSH2, 16, 16, 12, 16, 0, 0, EVP_aes_128_gcm }, |
SSH_CIPHER_SSH2, 16, 16, 12, 16, 0, 0, EVP_aes_128_gcm }, |
{ "aes256-gcm@openssh.com", |
{ "aes256-gcm@openssh.com", |
|
|
Cipher *c = cc->cipher; |
Cipher *c = cc->cipher; |
int plen = 0; |
int plen = 0; |
|
|
if (c->evptype == EVP_rc4 || c->evptype == EVP_acss) { |
if (c->evptype == EVP_rc4) { |
plen = EVP_X_STATE_LEN(cc->evp); |
plen = EVP_X_STATE_LEN(cc->evp); |
if (dat == NULL) |
if (dat == NULL) |
return (plen); |
return (plen); |
|
|
Cipher *c = cc->cipher; |
Cipher *c = cc->cipher; |
int plen; |
int plen; |
|
|
if (c->evptype == EVP_rc4 || c->evptype == EVP_acss) { |
if (c->evptype == EVP_rc4) { |
plen = EVP_X_STATE_LEN(cc->evp); |
plen = EVP_X_STATE_LEN(cc->evp); |
memcpy(EVP_X_STATE(cc->evp), dat, plen); |
memcpy(EVP_X_STATE(cc->evp), dat, plen); |
} |
} |