面向用户应用的Linux加密API

原文英文,约2600词,阅读约需10分钟。发表于:

If you run your software on Linux, the Linux Kernel itself can satisfy all your cryptographic needs! In this post we will explore Linux Crypto API for user applications and try to understand its...

本文比较了Linux Kernel Crypto API和OpenSSL的加密性能,使用bpftrace工具测量了它们加密相同数据的时间。结果显示,Kernel Crypto API的加密速度比OpenSSL慢两倍,但实际上只有81%的差距。作者认为,Kernel Crypto API的加密性能与OpenSSL相当,但需要更好的用户空间接口来提高速度。使用Crypto API是一个权衡速度和安全性的主观决定。

相关推荐 去reddit讨论