X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c2e3a6c92d062f019a60fa97d339db80fa0d88a3..51e9d3c00a3471f284e89ec1f59f38ca25f10c5f:/sshaes.c diff --git a/sshaes.c b/sshaes.c index bc62b985..5664f775 100644 --- a/sshaes.c +++ b/sshaes.c @@ -38,18 +38,6 @@ #define mulby2(x) ( ((x&0x7F) << 1) ^ (x & 0x80 ? 0x1B : 0) ) -#define GET_32BIT_MSB_FIRST(cp) \ - (((unsigned long)(unsigned char)(cp)[3]) | \ - ((unsigned long)(unsigned char)(cp)[2] << 8) | \ - ((unsigned long)(unsigned char)(cp)[1] << 16) | \ - ((unsigned long)(unsigned char)(cp)[0] << 24)) - -#define PUT_32BIT_MSB_FIRST(cp, value) do { \ - (cp)[3] = (value); \ - (cp)[2] = (value) >> 8; \ - (cp)[1] = (value) >> 16; \ - (cp)[0] = (value) >> 24; } while (0) - typedef struct AESContext AESContext; struct AESContext { @@ -1223,27 +1211,6 @@ static const struct ssh2_cipher ssh_aes256 = { 16, 256, "AES-256 CBC" }; -static const struct ssh2_cipher ssh_rijndael128 = { - aes_make_context, aes_free_context, aes_iv, aes128_key, - aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk, - "rijndael128-cbc", - 16, 128, "AES-128 CBC" -}; - -static const struct ssh2_cipher ssh_rijndael192 = { - aes_make_context, aes_free_context, aes_iv, aes192_key, - aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk, - "rijndael192-cbc", - 16, 192, "AES-192 CBC" -}; - -static const struct ssh2_cipher ssh_rijndael256 = { - aes_make_context, aes_free_context, aes_iv, aes256_key, - aes_ssh2_encrypt_blk, aes_ssh2_decrypt_blk, - "rijndael256-cbc", - 16, 256, "AES-256 CBC" -}; - 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, @@ -1254,14 +1221,11 @@ static const struct ssh2_cipher ssh_rijndael_lysator = { static const struct ssh2_cipher *const aes_list[] = { &ssh_aes256_ctr, &ssh_aes256, - &ssh_rijndael256, &ssh_rijndael_lysator, &ssh_aes192_ctr, &ssh_aes192, - &ssh_rijndael192, &ssh_aes128_ctr, &ssh_aes128, - &ssh_rijndael128, }; const struct ssh2_ciphers ssh2_aes = {