by tambourine_man · 5y ago · 0 comments
Is modern encryption a challenge to those old machines? Is it because of specialized encryption hardware or sheer brute force?
Or is it just this implementation that's slow?
I used telnet back in the 68k days.
Ooooooh yeah. It's got some serious overhead on single core systems several-hundred-megahertz systems without the instructions that are used to accelerate encryption these days. AES is what modern CPUs use to help with that. It wasn't until Power7+ before encryption was accelerated on that class of CPUs. The latest Mac to use Power CPUs was discontinued 6 years before that.
for interactive use, compared to rendering to the display and pushing the packet out the crypto overhead is going to be minuscule
my 2014 laptop (on battery, no hardware acceleration):
sign verify sign/s verify/s
rsa 4096 bits 0.006200s 0.000096s 161.3 10468.9
(not to mention everyone's using ec these days, which is quite a bit faster)doing the initial key exchange before timeout is barely possible for a 68030 at 16MHz, takes the better part of a minute!
of course, on the later PPC machines it's a complete non-issue
I've used modern encryption/mac routines on small embedded micro's and they seem reasonably efficient. Couple of operations per byte. They have to be fast because they are used for decrypting stuff like streaming video. I think an exception is password hashing algorithms which are slow by design.
That said some of the older algorithms are really inefficient. Hundreds of ops per byte.
This tool is relying on libssh2 for its SSH implementation core. chacha20-poly1305 and ed25519 are both extensions and are not included.
As for encryption, can you use a preshared key instead of public key?
blitting from a buffer onto the screen is, indeed, pretty fast, I've been experimenting with it and have some ideas for speeding things up