MCPcopy
hub / github.com/shadowsocks/shadowsocks / test_encrypt_all

Function test_encrypt_all

shadowsocks/encrypt.py:214–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213
214def test_encrypt_all():
215 from os import urandom
216 plain = urandom(10240)
217 for method in CIPHERS_TO_TEST:
218 logging.warn(method)
219 cipher = encrypt_all(b'key', method, 1, plain)
220 plain2 = encrypt_all(b'key', method, 0, cipher)
221 assert plain == plain2
222
223
224def test_encrypt_all_m():

Callers 1

encrypt.pyFile · 0.85

Calls 1

encrypt_allFunction · 0.85

Tested by

no test coverage detected