Implementation of this task is in the file dh.py, since the exchange algorithm itself is a part of the Agent class, this file contains only the basic calculations.
Tests are in the file dh_test.py.
Implemented in helpers.py.
Implemented in aes.py with custom functions for padding and unpadding, encryption and decryption.
Checked with bulk_cipher.py example.
Implemented in agent.py, implementation checked with tls_101.py.
Implemented in mitm.py, implementation checked with itls_101.py.
Implemented in rsa.py with tests in rsa_test.py.
Implemented in rsa.py as well, tests also in rsa_test.py. Files test_message and message_captured used in the tests.
The message is Even experts make mistakes. Crypto is extremely difficult to get right.
How Chinese remainder theorem is helping you here?
- this attack is based on the usage of small
eand the fact that when an eavesdropper is able to capture at least three cipher texts of the same messagem, they are able to "decrypt" it with CRT - Because we know the remainder of the encrypted
m^emodulo three different prime numbers (n1,n2,n3), using the CRT we are able to computec' = m^e mod n1*n2*n3. Sincem^e < n1*n2*n3we can computee-th root ofmin integers.
Not implemented.
Not implemented.
Not implemented.