AES加密与解密速度 [英] AES encryption versus decryption speed

查看:197
本文介绍了AES加密与解密速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经读过某个地方可以比加密更快地执行解密。它是否正确?这将是一个纯软件实现,可能是openssl。

解决方案

块密码操作模式可能对加密/解密过程的性能有直接的影响。大致说来;然而,在AES正在对数据块进行加密时,在相反方向(解密)执行每轮循环的操作,因此对加密/解密本身的性能变化没有合理的理由。一些块密码操作模式(例如CBC)在加密输入块时需要顺序操作,而不需要解密中的顺序操作。
请检查此链接以进一步讨论此事:
https://security.stackexchange.com/questions/38055/why-does-aes-encryption-take-more-time-than-decryption


I had read somewhere the decryption can be performed faster than encryption. Is this correct? This would be a pure software implementation using may be openssl.

解决方案

The block cipher mode of operation might have a direct impact in the performance of the encryption/decryption processes. Roughly speaking; the operations performed on each round while AES is encrypting a block of data are performed in the opposite direction (decryption), so no reasonable justification for performance variation in the encryption/decryption itself , however; some of the block cipher mode of operations (e.g. CBC) requires sequential operation when encrypting input blocks, while no need for sequential operation in decryption. Please Check this link for further discussion on this matter: https://security.stackexchange.com/questions/38055/why-does-aes-encryption-take-more-time-than-decryption

这篇关于AES加密与解密速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆