From 4623f878e08bc8f6f9253d4670569724d4c0a1b7 Mon Sep 17 00:00:00 2001 From: yancey Date: Mon, 10 Jun 2024 04:38:15 -0400 Subject: [PATCH] fix cipher bug --- connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.cpp b/connection.cpp index 637804a..b075491 100644 --- a/connection.cpp +++ b/connection.cpp @@ -435,7 +435,7 @@ int send_safer(conn_info_t &conn_info, char type, const char *data, int len) // if (cipher_mode == cipher_xor) { send_data_buf2[0] ^= gro_xor[0]; send_data_buf2[1] ^= gro_xor[1]; - } else if (cipher_mode == cipher_aes128cbc || cipher_mode == cipher_aes128cbc) { + } else if (cipher_mode == cipher_aes128cbc || cipher_mode == cipher_aes128cfb) { aes_ecb_encrypt1(send_data_buf2); } } @@ -586,7 +586,7 @@ int recv_safer_multi(conn_info_t &conn_info, vector &type_arr, vector