AMD CPU SHA acceleration

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Pictus
New Member
New Member
Posts: 1
Joined: 2020-05-11, 17:49 UTC

AMD CPU SHA acceleration

Post 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!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: AMD CPU SHA acceleration

Post 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
Author of Total Commander
https://www.ghisler.com
gigaman
Member
Member
Posts: 131
Joined: 2003-02-14, 11:28 UTC

Re: AMD CPU SHA acceleration

Post 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.
Post Reply