()
| 256 | sys.platform not in {"linux", "darwin"}, reason="mmap required" |
| 257 | ) |
| 258 | def test_update_auto_chunking(): |
| 259 | large_data = large_mmap(length=2**29 + 2**20) |
| 260 | |
| 261 | key = b"\x00" * 16 |
| 262 | c = ciphers.Cipher(AES(key), modes.ECB()) |
| 263 | encryptor = c.encryptor() |
| 264 | |
| 265 | result = encryptor.update(memoryview(large_data)) |
| 266 | assert len(result) == len(large_data) |
| 267 | |
| 268 | decryptor = c.decryptor() |
| 269 | result = decryptor.update(result) |
| 270 | assert result == large_data[:] |
nothing calls this directly
no test coverage detected