1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Allow a cipher to specify encryption of the packet length.

No cipher uses this facility yet, but one shortly will.
This commit is contained in:
Chris Staite
2015-06-07 12:51:24 +01:00
committed by Simon Tatham
parent 705f159255
commit 5d9a9a7bdf
6 changed files with 37 additions and 17 deletions

View File

@ -947,7 +947,7 @@ void des_decrypt_xdmauth(const unsigned char *keydata,
static const struct ssh2_cipher ssh_3des_ssh2 = {
des3_make_context, des3_free_context, des3_iv, des3_key,
des3_ssh2_encrypt_blk, des3_ssh2_decrypt_blk,
des3_ssh2_encrypt_blk, des3_ssh2_decrypt_blk, NULL, NULL,
"3des-cbc",
8, 168, SSH_CIPHER_IS_CBC, "triple-DES CBC",
NULL
@ -955,7 +955,7 @@ static const struct ssh2_cipher ssh_3des_ssh2 = {
static const struct ssh2_cipher ssh_3des_ssh2_ctr = {
des3_make_context, des3_free_context, des3_iv, des3_key,
des3_ssh2_sdctr, des3_ssh2_sdctr,
des3_ssh2_sdctr, des3_ssh2_sdctr, NULL, NULL,
"3des-ctr",
8, 168, 0, "triple-DES SDCTR",
NULL
@ -971,7 +971,7 @@ static const struct ssh2_cipher ssh_3des_ssh2_ctr = {
*/
static const struct ssh2_cipher ssh_des_ssh2 = {
des_make_context, des3_free_context, des3_iv, des_key,
des_ssh2_encrypt_blk, des_ssh2_decrypt_blk,
des_ssh2_encrypt_blk, des_ssh2_decrypt_blk, NULL, NULL,
"des-cbc",
8, 56, SSH_CIPHER_IS_CBC, "single-DES CBC",
NULL
@ -979,7 +979,7 @@ static const struct ssh2_cipher ssh_des_ssh2 = {
static const struct ssh2_cipher ssh_des_sshcom_ssh2 = {
des_make_context, des3_free_context, des3_iv, des_key,
des_ssh2_encrypt_blk, des_ssh2_decrypt_blk,
des_ssh2_encrypt_blk, des_ssh2_decrypt_blk, NULL, NULL,
"des-cbc@ssh.com",
8, 56, SSH_CIPHER_IS_CBC, "single-DES CBC",
NULL