Page 1 of 1

AMD CPU SHA acceleration

Posted: 2020-05-11, 17:58 UTC
by Pictus
HI,
Would be good if Total Commander Checksum creation/verify incorporates AMD SHA acceleration
https://stackoverflow.com/questions/44293192/seeking-information-on-hardware-sha-2-acceleration
Thanks!

Re: AMD CPU SHA acceleration

Posted: 2020-05-14, 10:20 UTC
by ghisler(Author)
TC currently uses two methods for SHA/SHA2:
1. Microsoft Crypto API functions - they seem to use Intel hardware acceleartion only
2. Internal using normal processor registers as a fallback

Re: AMD CPU SHA acceleration

Posted: 2020-06-15, 12:08 UTC
by gigaman
Please note that those instructions don't originate from AMD. Intel has proposed them years ago and they included them in their Goldmont (Apollo Lake) mobile CPUs. Then... nothing happened for quite some time, new Intel CPUs being released didn't support them (with the exception of the 10nm Cannon Lake - still low-end CPUs only though). In the meantime, Ryzen appeared, supporting these instructions as well (so it's probably the only desktop CPU at the moment supporting them). Ice Lake should support them I believe.

In other words, these extensions are common for Intel and AMD, so chances are Microsoft adds the support to Crypto API.
Actually, looking at bcryptprimitives.dll from the current Windows 10, I can see those instructions are there... so I guess it's already supported.