Skip to content

Discussion: Any Advantage to Using SHA-NI? #110

Answered by rhash
aolszowka asked this question in Q&A
Discussion options

You must be logged in to vote

Some of Intel and AMD CPUs support Intel SHA1 extension for SSE4, which add 7 instructions (SHA1RNDS4, SHA1NEXTE, SHA1MSG1, SHA1MSG2, SHA256RNDS2, SHA256MSG1, SHA256MSG2) to speed up SHA1, SHA224 and SHA256 calculations.

The possible implementation should include both optimized and non-optimized versions of SHA1 and SHA256 and choose the best supported by CPU at runtime. It will increase the program and library size. This contradicts one of the LibRHash declared features: to be small in size. We should estimate how the library size will increase and does it worth the increased SHA1/SHA2 perfomance.

The SHA1 hash function lately is considered broken, because of know method to generate coll…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rhash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #110 on December 26, 2020 23:41.