3 ms·
The best (ie. fastest and safest) SHA2-family function is SHA-384. http://securitydriven.net/inferno/#Implementation%20Details http://securitydriven.net/inferno
by sdrapkin 9y ago
The best (ie. fastest and safest) SHA2-family function is SHA-384.
http://securitydriven.net/inferno/#Implementation%20Details http://securitydriven.net/inferno/#Implementation%20Details
- ktta 9y ago*fastest in software on 64 bit platforms without hardware instructions. Note that it doesn't have the hardware instructions that are going to be common place for SHA-256 and SHA-224. Also if you have a 32-bit ARM phone (which is most phones in existence), it will take a hit on performance. That's because SHA-512 has 64-bit word size while SHA-256 has 32-bit word size. I thought I had the winner with SHA-256, but looks like I blanked on the fact that SHA-256 is susceptible to length extension attacks while the truncated versions of SHA2 are not. So I'll say SHA-224 is the optimal choice because even if you are running on 64 bit platforms, the hardware instructions will make it faster than SHA-512. Also insisting on higher security than SHA-256 is not a very smart move. SHA-256 offers more than enough security margin.