mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22: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:

committed by
Simon Tatham

parent
705f159255
commit
5d9a9a7bdf
14
sshaes.c
14
sshaes.c
@ -1171,7 +1171,7 @@ void aes256_decrypt_pubkey(unsigned char *key, unsigned char *blk, int len)
|
||||
|
||||
static const struct ssh2_cipher ssh_aes128_ctr = {
|
||||
aes_make_context, aes_free_context, aes_iv, aes128_key,
|
||||
aes_ssh2_sdctr, aes_ssh2_sdctr,
|
||||
aes_ssh2_sdctr, aes_ssh2_sdctr, NULL, NULL,
|
||||
"aes128-ctr",
|
||||
16, 128, 0, "AES-128 SDCTR",
|
||||
NULL
|
||||
@ -1179,7 +1179,7 @@ static const struct ssh2_cipher ssh_aes128_ctr = {
|
||||
|
||||
static const struct ssh2_cipher ssh_aes192_ctr = {
|
||||
aes_make_context, aes_free_context, aes_iv, aes192_key,
|
||||
aes_ssh2_sdctr, aes_ssh2_sdctr,
|
||||
aes_ssh2_sdctr, aes_ssh2_sdctr, NULL, NULL,
|
||||
"aes192-ctr",
|
||||
16, 192, 0, "AES-192 SDCTR",
|
||||
NULL
|
||||
@ -1187,7 +1187,7 @@ static const struct ssh2_cipher ssh_aes192_ctr = {
|
||||
|
||||
static const struct ssh2_cipher ssh_aes256_ctr = {
|
||||
aes_make_context, aes_free_context, aes_iv, aes256_key,
|
||||
aes_ssh2_sdctr, aes_ssh2_sdctr,
|
||||
aes_ssh2_sdctr, aes_ssh2_sdctr, NULL, NULL,
|
||||
"aes256-ctr",
|
||||
16, 256, 0, "AES-256 SDCTR",
|
||||
NULL
|
||||
@ -1195,7 +1195,7 @@ static const struct ssh2_cipher ssh_aes256_ctr = {
|
||||
|
||||
static const struct ssh2_cipher ssh_aes128 = {
|
||||
aes_make_context, aes_free_context, aes_iv, aes128_key,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk, NULL, NULL,
|
||||
"aes128-cbc",
|
||||
16, 128, SSH_CIPHER_IS_CBC, "AES-128 CBC",
|
||||
NULL
|
||||
@ -1203,7 +1203,7 @@ static const struct ssh2_cipher ssh_aes128 = {
|
||||
|
||||
static const struct ssh2_cipher ssh_aes192 = {
|
||||
aes_make_context, aes_free_context, aes_iv, aes192_key,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk, NULL, NULL,
|
||||
"aes192-cbc",
|
||||
16, 192, SSH_CIPHER_IS_CBC, "AES-192 CBC",
|
||||
NULL
|
||||
@ -1211,7 +1211,7 @@ static const struct ssh2_cipher ssh_aes192 = {
|
||||
|
||||
static const struct ssh2_cipher ssh_aes256 = {
|
||||
aes_make_context, aes_free_context, aes_iv, aes256_key,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk, NULL, NULL,
|
||||
"aes256-cbc",
|
||||
16, 256, SSH_CIPHER_IS_CBC, "AES-256 CBC",
|
||||
NULL
|
||||
@ -1219,7 +1219,7 @@ static const struct ssh2_cipher ssh_aes256 = {
|
||||
|
||||
static const struct ssh2_cipher ssh_rijndael_lysator = {
|
||||
aes_make_context, aes_free_context, aes_iv, aes256_key,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk,
|
||||
aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk, NULL, NULL,
|
||||
"rijndael-cbc@lysator.liu.se",
|
||||
16, 256, SSH_CIPHER_IS_CBC, "AES-256 CBC",
|
||||
NULL
|
||||
|
Reference in New Issue
Block a user