Merge #799: Add fallback LE/BE for architectures with known endianness + SHA256 selftest
8bc6aeffa9Add SHA256 selftest (Pieter Wuille)5e5fb28b4aUse additional system macros to figure out endianness (Pieter Wuille) Pull request description: These are all the architecture macros I could find with known endianness. Use those as a fallback when __BYTE_ORDER__ isn't available. See https://github.com/bitcoin-core/secp256k1/pull/787#issuecomment-673764652 It also adds a SHA256 selftest, so that improperly overriding the endianness detection will be detected at runtime. ACKs for top commit: real-or-random: ACK8bc6aeffa9I read the diff, and tested that the self-test passes/fails with/without the correct endianness setting gmaxwell: ACK8bc6aeffa9looks good and I also ran the tests on MIPS-BE and verified that forcing it to LE makes the runtime test fail. Tree-SHA512: aca4cebcd0715dcf5b58f5763cb4283af238987f43bd83a650e38e127f348131692b2eed7ae5b2ae96046d9b971fc77c6ab44467689399fe470a605c3458ecc5
This commit is contained in:
@@ -38,6 +38,7 @@ noinst_HEADERS += src/assumptions.h
|
||||
noinst_HEADERS += src/util.h
|
||||
noinst_HEADERS += src/scratch.h
|
||||
noinst_HEADERS += src/scratch_impl.h
|
||||
noinst_HEADERS += src/selftest.h
|
||||
noinst_HEADERS += src/testrand.h
|
||||
noinst_HEADERS += src/testrand_impl.h
|
||||
noinst_HEADERS += src/hash.h
|
||||
|
||||
Reference in New Issue
Block a user