diff options
author | irungentoo <irungentoo@gmail.com> | 2014-06-04 13:28:56 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-06-04 13:28:56 -0400 |
commit | b44b58cae41ba8da806dc0b6149ab21da252e884 (patch) | |
tree | cd0b3e2a88095f5f1be085b9c856c8bd6bdec472 /toxcore/TCP_server.c | |
parent | de5a33e8520b99775caee8d4a304703a50ef862e (diff) |
Added data packet padding to toxcore.
Data sent as lossless or lossy is now padded with:
((MAX_CRYPTO_DATA_SIZE - data_length) % CRYPTO_MAX_PADDING) bytes
in order to reduce the possibility of length related attacks.
I set CRYPTO_MAX_PADDING to 8 but it can be changed anytime without
breaking network compatibility between tox cores.
Diffstat (limited to 'toxcore/TCP_server.c')
0 files changed, 0 insertions, 0 deletions