1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -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

@ -100,7 +100,7 @@ static void arcfour_iv(void *handle, unsigned char *key)
const struct ssh2_cipher ssh_arcfour128_ssh2 = {
arcfour_make_context, arcfour_free_context, arcfour_iv, arcfour128_key,
arcfour_block, arcfour_block,
arcfour_block, arcfour_block, NULL, NULL,
"arcfour128",
1, 128, 0, "Arcfour-128",
NULL
@ -108,7 +108,7 @@ const struct ssh2_cipher ssh_arcfour128_ssh2 = {
const struct ssh2_cipher ssh_arcfour256_ssh2 = {
arcfour_make_context, arcfour_free_context, arcfour_iv, arcfour256_key,
arcfour_block, arcfour_block,
arcfour_block, arcfour_block, NULL, NULL,
"arcfour256",
1, 256, 0, "Arcfour-256",
NULL