Skip to content

ARM: fix incorrect variable names - #14

Merged
noloader merged 1 commit into
noloader:masterfrom
mikowals:patch-1
Jan 7, 2026
Merged

noloader merged 1 commit into
noloader:masterfrom
mikowals:patch-1

Conversation

@mikowals

Copy link
Copy Markdown
Contributor

The ARM SHA256 functions take the state variables in simple alphabetic order, ABCD and EFGH. Documented here.

The state is ordered and use correctly only the names are wrong. So no calculations are changed.

The ARM SHA256 functions take the state variables in simple alphabetic order, ABCD and EFGH.  Documented [here](https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesinstructiongroup=[Cryptography,SHA256])

The state is ordered and use correctly only the names are wrong.  So no calculations are changed.
@jrakibi

jrakibi commented Jan 7, 2026

Copy link
Copy Markdown

agreed, I ran into the same confusion when reading the ARM code

@noloader
noloader merged commit 1e414a6 into noloader:master Jan 7, 2026
noloader added a commit that referenced this pull request Jan 8, 2026
This reverts commit 1e414a6, reversing
changes made to 4899efc.
jrakibi added a commit to jrakibi/bitcoin that referenced this pull request May 3, 2026
…HA-256 ARM intrinsics

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): noloader/SHA-Intrinsics#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-
sedited added a commit to bitcoin/bitcoin that referenced this pull request May 20, 2026
…rinsics

86718e4 scripted-diff: rename ABEF_SAVE/CDGH_SAVE to ABCD_SAVE/EFGH_SAVE in SHA-256 ARM intrinsics (jrakibi)

Pull request description:

  ARM SHA256 intrinsics take state in natural order: ABCD + EFGH (hash_abcd/hash_efgh). [Documented here](https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesinstructiongroup=[Cryptography,SHA256])
  The code already uses that layout, only the `ABEF_SAVE`/`CDGH_SAVE` names were wrong.

  Rename to `ABCD_SAVE`/`EFGH_SAVE`. No logic change.
  Fix in original C code (Jeffrey): noloader/SHA-Intrinsics#14

ACKs for top commit:
  l0rinc:
    ACK 86718e4
  sedited:
    ACK 86718e4

Tree-SHA512: 81c430343f5ee7c9f8d775aa88affb1e3ac60b5df07eac6072d2ba7b53d28c9bb62ea72eee4bc410309f6d38a8abcbb6e27be43dd57d1112b4311e83b58540cf
rustaceanrob pushed a commit to 2140-dev/bitcoin that referenced this pull request May 22, 2026
…ARM intrinsics

86718e4 scripted-diff: rename ABEF_SAVE/CDGH_SAVE to ABCD_SAVE/EFGH_SAVE in SHA-256 ARM intrinsics (jrakibi)

Pull request description:

  ARM SHA256 intrinsics take state in natural order: ABCD + EFGH (hash_abcd/hash_efgh). [Documented here](https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesinstructiongroup=[Cryptography,SHA256])
  The code already uses that layout, only the `ABEF_SAVE`/`CDGH_SAVE` names were wrong.

  Rename to `ABCD_SAVE`/`EFGH_SAVE`. No logic change.
  Fix in original C code (Jeffrey): noloader/SHA-Intrinsics#14

ACKs for top commit:
  l0rinc:
    ACK 86718e4
  sedited:
    ACK 86718e4

Tree-SHA512: 81c430343f5ee7c9f8d775aa88affb1e3ac60b5df07eac6072d2ba7b53d28c9bb62ea72eee4bc410309f6d38a8abcbb6e27be43dd57d1112b4311e83b58540cf
(cherry picked from commit a7df1bd)
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Jun 28, 2026
…HA-256 ARM intrinsics

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): noloader/SHA-Intrinsics#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-
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Jun 28, 2026
…SHA-256 ARM intrinsics

e4c6a10 scripted-diff: rename ABEF_SAVE/CDGH_SAVE to ABCD_SAVE/EFGH_SAVE in SHA-256 ARM intrinsics (jrakibi)

Pull request description:

  ARM SHA256 intrinsics take state in natural order: ABCD + EFGH (hash_abcd/hash_efgh). [Documented here](https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesinstructiongroup=[Cryptography,SHA256])
  The code already uses that layout, only the `ABEF_SAVE`/`CDGH_SAVE` names were wrong.

  Rename to `ABCD_SAVE`/`EFGH_SAVE`. No logic change.
  Fix in original C code (Jeffrey): noloader/SHA-Intrinsics#14

ACKs for top commit:
  l0rinc:
    ACK e4c6a10
  sedited:
    ACK e4c6a10

Tree-SHA512: 81c430343f5ee7c9f8d775aa88affb1e3ac60b5df07eac6072d2ba7b53d28c9bb62ea72eee4bc410309f6d38a8abcbb6e27be43dd57d1112b4311e83b58540cf
BigcoinBGC pushed a commit to BigcoinBGC/bigcoin that referenced this pull request Jun 30, 2026
…HA-256 ARM intrinsics

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): noloader/SHA-Intrinsics#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-
BigcoinBGC pushed a commit to BigcoinBGC/bigcoin that referenced this pull request Jun 30, 2026
…SHA-256 ARM intrinsics

8b89c61 scripted-diff: rename ABEF_SAVE/CDGH_SAVE to ABCD_SAVE/EFGH_SAVE in SHA-256 ARM intrinsics (jrakibi)

Pull request description:

  ARM SHA256 intrinsics take state in natural order: ABCD + EFGH (hash_abcd/hash_efgh). [Documented here](https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesinstructiongroup=[Cryptography,SHA256])
  The code already uses that layout, only the `ABEF_SAVE`/`CDGH_SAVE` names were wrong.

  Rename to `ABCD_SAVE`/`EFGH_SAVE`. No logic change.
  Fix in original C code (Jeffrey): noloader/SHA-Intrinsics#14

ACKs for top commit:
  l0rinc:
    ACK 8b89c61
  sedited:
    ACK 8b89c61

Tree-SHA512: 81c430343f5ee7c9f8d775aa88affb1e3ac60b5df07eac6072d2ba7b53d28c9bb62ea72eee4bc410309f6d38a8abcbb6e27be43dd57d1112b4311e83b58540cf
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Aug 19, 2026
…HA-256 ARM intrinsics

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): noloader/SHA-Intrinsics#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-
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Aug 19, 2026
…SHA-256 ARM intrinsics

86718e4589682529932050dc08998fbb7bd86cef scripted-diff: rename ABEF_SAVE/CDGH_SAVE to ABCD_SAVE/EFGH_SAVE in SHA-256 ARM intrinsics (jrakibi)

Pull request description:

  ARM SHA256 intrinsics take state in natural order: ABCD + EFGH (hash_abcd/hash_efgh). [Documented here](https://developer.arm.com/architectures/instruction-sets/intrinsics/#f:@navigationhierarchiesinstructiongroup=[Cryptography,SHA256])
  The code already uses that layout, only the `ABEF_SAVE`/`CDGH_SAVE` names were wrong.

  Rename to `ABCD_SAVE`/`EFGH_SAVE`. No logic change.
  Fix in original C code (Jeffrey): noloader/SHA-Intrinsics#14

ACKs for top commit:
  l0rinc:
    ACK 86718e4589682529932050dc08998fbb7bd86cef
  sedited:
    ACK 86718e4589682529932050dc08998fbb7bd86cef

Tree-SHA512: 81c430343f5ee7c9f8d775aa88affb1e3ac60b5df07eac6072d2ba7b53d28c9bb62ea72eee4bc410309f6d38a8abcbb6e27be43dd57d1112b4311e83b58540cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants