Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
202 views
in Technique[技术] by (71.8m points)

why AES encryption is faster than Decryption

I developed an encrypion system using AES, as i read, AES is symmetric and thus it takes the same period of time to encrypt and decrypt a particular file .. in my case, i got encryption time shorter than decryption time eventhough I iterate the encryption and decryption for the same file more than 20 times.

any justiication why am I getting different time for encryption or decryption ?!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Symmetric points to the fact that it uses the same key to encrypt and decrypt, and has nothing to do with the encryption and decryption functions themselves. Algorithms generally perform differently depending on their implementation. That said, the opposite of your question has been asked on the Security StackExchange: https://security.stackexchange.com/questions/38055/why-does-aes-encryption-take-more-time-than-decryption


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...