Replies: 1 comment 1 reply
-
看起来arm64下,使用aes-ni的单block性能还是下降很多的,所以先切回使用查表实现。
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
当前用AES-NI实现的
encryptBlockAsm
的性能,比不上使用查表方法(预计算了L变换:Lookup(j) = L(sbox[j]))的纯golang实现,当然目前实现的查表方法是非constant-time实现,如果实现constant-time查表,性能会显著下降。Constant-Time实现:
性能:
非Constant-Time实现(当前实现)性能:
所以用AES-NI实现,从安全性和性能平衡来讲,目前还是一个好的选择。
参考
Beta Was this translation helpful? Give feedback.
All reactions