mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-13 06:04:42 +02:00
ARM SHA256 intrinsics take state in natural order: ABCD + EFGH (hash_abcd/hash_efgh). The code already uses that layout, only the ABEF_SAVE/CDGH_SAVE names were wrong. Rename to ABCD_SAVE/EFGH_SAVE. No logic change. Docs: https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesinstructiongroup=[Cryptography,SHA256] Fix in original C code (Jeffrey): https://github.com/noloader/SHA-Intrinsics/pull/14 -BEGIN VERIFY SCRIPT- perl -pi -e 's/\bABEF_SAVE([AB])?\b/ABCD_SAVE$1/g' src/crypto/sha256_arm_shani.cpp perl -pi -e 's/\bCDGH_SAVE([AB])?\b/EFGH_SAVE$1/g' src/crypto/sha256_arm_shani.cpp -END VERIFY SCRIPT-