V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
changePro

LibreSSL 性能测试

  •  
  •   changePro · Mar 22, 2020 · 1749 views
    This topic created in 2232 days ago, the information mentioned may be changed or developed.

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

    daiqiangbudainiu
        1
    daiqiangbudainiu  
       Mar 23, 2020
    在我的 Mac 本上,chacha20 反而性能好于 aes gcm,百思不得其解
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2355 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:40 · PVG 18:40 · LAX 03:40 · JFK 06:40
    ♥ Do have faith in what you're doing.