V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
changePro
V2EX  ›  分享创造

LibreSSL 性能测试

  •  
  •   changePro · 2020-03-22 18:40:43 +08:00 · 1328 次点击
    这是一个创建于 1504 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天突然想做一下加密算法的性能对比,路由器因为交叉编译环境比较难(在 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"
    

    pubchart.png

    数据在这里 https://docs.google.com/spreadsheets/d/1jyJh27P2iaisb4W3QOavPbNK9U7Nnv50LFaT4lYkJCk/edit?usp=sharing


    总结是这样,由于牙膏厂的 AES-NI 加持,速度爆棚。Chacha20-Poly1305 不太理想。

    warcraft1236
        1
    warcraft1236  
       2020-03-23 18:11:00 +08:00
    在我的 Mac 本上,chacha20 反而性能好于 aes gcm,百思不得其解
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2600 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.