()
| 212 | |
| 213 | |
| 214 | def 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 | |
| 224 | def test_encrypt_all_m(): |