u/Salat_Leaf

Why is hardware accelerated AES256 slower than ChaCha20

I'm not sure if it's the right subreddit to post in, but I was wondering why AES256 is slower on my CPU (Snapdragon 888 which does have AES acceleration) than ChaCha20 and maybe anybody knows the reason. Usually AES is >1.5x faster on average if hardware support is present but there it's completely opposite:

AES256 openssl benchmark: type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes AES-256-CCM 59140.73k 194164.12k 452524.12k 676609.02k 790874.79k 805153.45k

ChaCha20 openssl benchmark: type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes ChaCha20 265859.33k 435673.17k 838061.74k 1332601.17k 1371340.80k 1375125.50k

reddit.com
u/Salat_Leaf — 1 day ago

Alternatives to Siphash for authentication

I need performative hash function with DoS resistance and message authentication. Constraint: absolute performance is required. Am joncing for your opinion on Highwayhash, Gxhash, AutobahnHash and Ahash, and how do they fit for my purpose, encapsulated. Thanks in advance!

reddit.com
u/Salat_Leaf — 9 days ago