
今天突然想做一下加密算法的性能对比,路由器因为交叉编译环境比较难(在 android 上面编译 libressl 失败)。只做了树莓派和家里其他设备的性能测试
$ /usr/local/opt/libressl/bin/openssl version -a LibreSSL 3.0.2 built on: date not available platform: information not available options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) compiler: information not available OPENSSLDIR: "/usr/local/etc/libressl" 
数据在这里 https://docs.google.com/spreadsheets/d/1jyJh27P2iaisb4W3QOavPbNK9U7Nnv50LFaT4lYkJCk/edit?usp=sharing
总结是这样,由于牙膏厂的 AES-NI 加持,速度爆棚。Chacha20-Poly1305 不太理想。
1 daiqiangbudainiu Mar 23, 2020 在我的 Mac 本上,chacha20 反而性能好于 aes gcm,百思不得其解 |