Add and use internal header that implements endianness check
authorRichard Levitte <levitte@openssl.org>
Thu, 9 Jul 2020 06:37:46 +0000 (08:37 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 11 Jul 2020 08:00:33 +0000 (10:00 +0200)
commite23d850ff3281220f33ed78d9ca4fcadfa279565
tree4e7f73d978bb1a7986e0ac27ee61bdab23d66ed2
parentd685fc7a59699aeb17120aebd17a9175ce5930cd
Add and use internal header that implements endianness check

This moves test/ossl_test_endian.h to include/internal/endian.h and
thereby makes the macros in there our standard way to check endianness
in run-time.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/12390)
14 files changed:
crypto/chacha/chacha_enc.c
crypto/evp/bio_ok.c
crypto/evp/e_chacha20_poly1305.c
crypto/modes/ctr128.c
crypto/modes/gcm128.c
crypto/modes/siv128.c
crypto/modes/xts128.c
crypto/sha/sha256.c
crypto/sha/sha_local.h
include/internal/endian.h [moved from test/ossl_test_endian.h with 88% similarity]
providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c
providers/implementations/digests/blake2_impl.h
providers/implementations/kdfs/kbkdf.c
test/params_api_test.c