Kryvich 165 Posted February 5, 2020 Any modern CPU has SHA extensions - set of instructions that accelerate the Secure Hash Algorithms. Do you know any implementation of SHA in Delphi, which uses these extensions? Share this post Link to post
Lars Fosdal 1792 Posted February 5, 2020 Would it be possible to wrap the assembly versions of these in Delphi?https://www.nayuki.io/page/fast-sha2-hashes-in-x86-assembly Share this post Link to post
Kryvich 165 Posted February 5, 2020 I do not see SHA instructions in this assembler code. The author writes that he tested his implementations on Intel Core 2 Quad Q6600 processor. This processor does not support SHA extensions. Share this post Link to post
Fr0sT.Brutal 900 Posted February 6, 2020 As I've read yesterday, author of 7zip implemented these functions in recent version so you can take a look. True security paranoids won't rely on closed source algorithm implementations though Share this post Link to post
Tommi Prami 130 Posted February 6, 2020 Did quick google search to familiarize myself on the subject and ran into this:https://github.com/minio/sha256-simd Seems to be worth checking out. .Tee. 2 Share this post Link to post
Kryvich 165 Posted February 6, 2020 @Tommi Prami Yes, this code uses SHA Extensions. I think it's possible to convert it to a Delphi asm procedure.https://github.com/minio/sha256-simd/blob/master/sha256blockSha_amd64.s Share this post Link to post