Module ImportFrom alias alias alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args defaults body Global identifier identifier identifier Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Str Str Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Str Str If CompareNotEq NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier identifier Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore BinOpMult NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad BinOpMult Str Num BinOpMult Str Num Num Assign NameStore Call NameLoad NameLoad BinOpMult Str Num BinOpMult Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ absolute_import division print_function with_statement ctypes c_char_p c_int c_long byref create_string_buffer c_void_p shadowsocks common shadowsocks.crypto util N/A __all__ N/A ciphers N/A libcrypto None N/A loaded False N/A buf_size 2048 load_openssl N/A N/A N/A N/A N/A loaded libcrypto buf N/A libcrypto N/A N/A util find_library N/A crypto eay32 EVP_get_cipherbyname libcrypto N/A N/A libcrypto None N/A N/A N/A Exception libcrypto(OpenSSL) not found N/A N/A N/A libcrypto EVP_get_cipherbyname restype c_void_p N/A N/A N/A libcrypto EVP_CIPHER_CTX_new restype c_void_p N/A N/A N/A libcrypto EVP_CipherInit_ex argtypes N/A c_void_p c_void_p c_char_p c_char_p c_char_p c_int N/A N/A N/A libcrypto EVP_CipherUpdate argtypes N/A c_void_p c_void_p c_void_p c_char_p c_int N/A N/A N/A libcrypto EVP_CIPHER_CTX_cleanup argtypes N/A c_void_p N/A N/A N/A libcrypto EVP_CIPHER_CTX_free argtypes N/A c_void_p N/A N/A hasattr libcrypto OpenSSL_add_all_ciphers N/A N/A N/A N/A libcrypto OpenSSL_add_all_ciphers N/A buf N/A create_string_buffer buf_size N/A loaded True N/A load_cipher N/A N/A cipher_name N/A N/A N/A func_name N/A EVP_ N/A N/A cipher_name replace - _ N/A N/A bytes str N/A N/A func_name N/A str func_name utf-8 N/A cipher N/A getattr libcrypto func_name None N/A cipher N/A N/A N/A cipher restype c_void_p N/A N/A cipher N/A None N/A OpenSSLCrypto N/A object N/A __init__ N/A N/A self cipher_name key iv op N/A N/A N/A N/A self _ctx None N/A N/A loaded N/A N/A N/A load_openssl N/A cipher_name N/A N/A common to_bytes cipher_name N/A cipher N/A N/A libcrypto EVP_get_cipherbyname cipher_name N/A N/A cipher N/A N/A cipher N/A load_cipher cipher_name N/A N/A cipher N/A N/A N/A Exception N/A cipher %s not found in libcrypto cipher_name N/A key_ptr N/A c_char_p key N/A iv_ptr N/A c_char_p iv N/A N/A self _ctx N/A N/A libcrypto EVP_CIPHER_CTX_new N/A N/A N/A self _ctx N/A N/A N/A Exception can not create cipher context N/A r N/A N/A libcrypto EVP_CipherInit_ex N/A self _ctx cipher None key_ptr iv_ptr N/A c_int op N/A N/A r N/A N/A N/A N/A self clean N/A N/A Exception can not initialize cipher context N/A update N/A N/A self data N/A N/A N/A buf_size buf N/A cipher_out_len N/A c_long 0 N/A l N/A len data N/A N/A buf_size l N/A N/A buf_size N/A l 2 N/A buf N/A create_string_buffer buf_size N/A N/A N/A libcrypto EVP_CipherUpdate N/A self _ctx N/A byref buf N/A byref cipher_out_len N/A c_char_p data l N/A N/A N/A buf raw N/A N/A cipher_out_len value N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self clean N/A clean N/A N/A self N/A N/A N/A N/A self _ctx N/A N/A N/A N/A libcrypto EVP_CIPHER_CTX_cleanup N/A self _ctx N/A N/A N/A libcrypto EVP_CIPHER_CTX_free N/A self _ctx N/A N/A N/A ciphers N/A aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ofb aes-192-ofb aes-256-ofb aes-128-ctr aes-192-ctr aes-256-ctr aes-128-cfb8 aes-192-cfb8 aes-256-cfb8 aes-128-cfb1 aes-192-cfb1 aes-256-cfb1 bf-cfb camellia-128-cfb camellia-192-cfb camellia-256-cfb cast5-cfb des-cfb idea-cfb rc2-cfb rc4 seed-cfb N/A 16 16 OpenSSLCrypto N/A 24 16 OpenSSLCrypto N/A 32 16 OpenSSLCrypto N/A 16 16 OpenSSLCrypto N/A 24 16 OpenSSLCrypto N/A 32 16 OpenSSLCrypto N/A 16 16 OpenSSLCrypto N/A 24 16 OpenSSLCrypto N/A 32 16 OpenSSLCrypto N/A 16 16 OpenSSLCrypto N/A 24 16 OpenSSLCrypto N/A 32 16 OpenSSLCrypto N/A 16 16 OpenSSLCrypto N/A 24 16 OpenSSLCrypto N/A 32 16 OpenSSLCrypto N/A 16 8 OpenSSLCrypto N/A 16 16 OpenSSLCrypto N/A 24 16 OpenSSLCrypto N/A 32 16 OpenSSLCrypto N/A 16 8 OpenSSLCrypto N/A 8 8 OpenSSLCrypto N/A 16 8 OpenSSLCrypto N/A 16 8 OpenSSLCrypto N/A 16 0 OpenSSLCrypto N/A 16 16 OpenSSLCrypto run_method N/A N/A method N/A N/A N/A cipher N/A OpenSSLCrypto method N/A k 32 N/A i 16 1 N/A decipher N/A OpenSSLCrypto method N/A k 32 N/A i 16 0 N/A N/A N/A util run_cipher cipher decipher N/A test_aes_128_cfb N/A N/A N/A N/A N/A N/A run_method aes-128-cfb N/A test_aes_256_cfb N/A N/A N/A N/A N/A N/A run_method aes-256-cfb N/A test_aes_128_cfb8 N/A N/A N/A N/A N/A N/A run_method aes-128-cfb8 N/A test_aes_256_ofb N/A N/A N/A N/A N/A N/A run_method aes-256-ofb N/A test_aes_256_ctr N/A N/A N/A N/A N/A N/A run_method aes-256-ctr N/A test_bf_cfb N/A N/A N/A N/A N/A N/A run_method bf-cfb N/A test_rc4 N/A N/A N/A N/A N/A N/A run_method rc4 N/A N/A N/A __name__ __main__ N/A N/A N/A test_aes_128_cfb