From 11f4b47939203cc83726c4d554ff445f65ce70ba Mon Sep 17 00:00:00 2001 From: Akkariiin Date: Fri, 15 Sep 2017 18:55:45 +0800 Subject: [PATCH] add a notice for CBC mode --- shadowsocks/crypto/openssl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shadowsocks/crypto/openssl.py b/shadowsocks/crypto/openssl.py index 3918bcc..e4980a4 100644 --- a/shadowsocks/crypto/openssl.py +++ b/shadowsocks/crypto/openssl.py @@ -132,6 +132,8 @@ class OpenSSLCrypto(object): ciphers = { + # CBC mode need a special use way that different from other. + # CBC mode encrypt message with 16n length, and need 16n+1 length space to decrypt it , otherwise don't decrypt it 'aes-128-cbc': (16, 16, OpenSSLCrypto), 'aes-192-cbc': (24, 16, OpenSSLCrypto), 'aes-256-cbc': (32, 16, OpenSSLCrypto),