MCPcopy Create free account
hub / github.com/RsaCtfTool/RsaCtfTool / TestDecryptFile

Class TestDecryptFile

tests/test_attacks.py:280–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278
279
280class TestDecryptFile:
281 @pytest.mark.network
282 @pytest.mark.slow
283 def test_decrypt_multiple_files(self):
284 result = _run(
285 "--publickey",
286 "examples/primefac.pub",
287 "--decryptfile",
288 "examples/cipher1,examples/cipher2,examples/cipher3",
289 "--private",
290 "--timeout",
291 "120",
292 timeout=300,
293 )
294 assert result.returncode == 0
295
296 @pytest.mark.network
297 def test_decrypt_multiple_keys(self):
298 result = _run(
299 "--publickey",
300 "examples/boneh_durfee.pub,examples/primefac.pub",
301 "--decryptfile",
302 "examples/cipher1",
303 "--private",
304 "--timeout",
305 "120",
306 timeout=180,
307 )
308 assert result.returncode == 0
309
310
311class TestGCDAttacks:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected