You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a look at why my tunnels are slow. Without having run a profiler, my fist guess was the crypto layer. So I did some poking around in tunnelcrypto.py. And saw it creates a lot of python objects just to do one encryption run. So I peeked at the docs for modes.GCM, it contains a hint to use AESGCM when doing small batches of data. So does this pay off?
So nearly a 2x speedup there. But I don't know if i did this right (read: securely), and it is a breaking change. AESGCM includes it's own tag, whereas the current tunnelcrypto.py has to .pack() it along with the data (so the savings might even be better). So perhaps someone can investigate this for the future.
The text was updated successfully, but these errors were encountered:
Captain-Coder
changed the title
Future tunnel crypto improvement
Tunnel crypto improvement with AESGCM
Sep 18, 2017
I had a look at why my tunnels are slow. Without having run a profiler, my fist guess was the crypto layer. So I did some poking around in tunnelcrypto.py. And saw it creates a lot of python objects just to do one encryption run. So I peeked at the docs for modes.GCM, it contains a hint to use AESGCM when doing small batches of data. So does this pay off?
38.672110080718994
This would be our current tunnel crypto code. But when using AESGCM:
18.620353937149048
So nearly a 2x speedup there. But I don't know if i did this right (read: securely), and it is a breaking change. AESGCM includes it's own tag, whereas the current tunnelcrypto.py has to .pack() it along with the data (so the savings might even be better). So perhaps someone can investigate this for the future.
The text was updated successfully, but these errors were encountered: