cheatfate / nimcrypto

Nim cryptographic library
MIT License
190 stars 23 forks source link

Add hardware-accelerated implementation of SHA256 #36

Open zah opened 4 years ago

zah commented 4 years ago

Most modern CPUs offer specialized instructions for computing the SHA family of functions. For optimal power usage and maximum throughput in SSZ merkleization, we can benefit from such a hardware-accelerated implementation in Nimcrypto.

Existing code in other languages: https://github.com/noloader/SHA-Intrinsics https://github.com/minio/sha256-simd

mratsim commented 4 years ago

Code from a cryptographer (and also co-author in hash-to-curve draft)

https://github.com/armfazh/flo-shani-aesni