Accelerated SHA256 with ARM64 crypto extensions? #17414

issue laanwj opened this issue on November 8, 2019
  1. laanwj commented at 9:51 AM on November 8, 2019: member

    Quite a lot of ARM64 SoC have cryptography extensions, in Linux look for sha2 feature in /proc/cpuinfo or getauxval(AT_HWCAP) & HWCAP_SHA2 .

    Apparently some impressive speed-ups can be achieved, I've heard of 4× to 8× on some SoCs.

    Here is some public domain code by Jeffrey Walton that demonstrates how to use it, using intrinsics (which are the best way to do this kind of thing on ARM): https://github.com/noloader/SHA-Intrinsics/blob/master/sha256-arm.c

    (I'm creating this issue mostly as reminder to myself but if someone wants to pick it up, fine :smile: )

  2. laanwj added the label Feature on Nov 8, 2019
  3. laanwj renamed this:
    Accelerated SHA256 for ARM64 crypto extensions?
    Accelerated SHA256 with ARM64 crypto extensions?
    on Nov 8, 2019
  4. laanwj added the label Android on Nov 8, 2019
  5. laanwj added the label Validation on Nov 8, 2019
  6. laanwj commented at 8:35 AM on January 3, 2021: member

    Seems a duplicate of #13401.

  7. laanwj closed this on Jan 3, 2021

  8. laanwj cross-referenced this on Jan 3, 2021 from issue ARMv8 sha2 support by Sjors
  9. prusnak cross-referenced this on Jan 20, 2022 from issue ARMv8 SHA2 Intrinsics by prusnak
  10. laanwj referenced this in commit c23bf06492 on Feb 14, 2022
  11. PastaPastaPasta referenced this in commit a7a3a93489 on Mar 29, 2022
  12. PastaPastaPasta referenced this in commit 8278356354 on Mar 29, 2022
  13. bitcoin locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC