remove sha256 endianness check, it actually works fine on big endian

i am an idiot i'm sorry
This commit is contained in:
Andrei Alexeyev 2019-03-12 01:56:30 +02:00
parent c2c1794c14
commit f2b11c19f8
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4
2 changed files with 1 additions and 10 deletions

View file

@ -44,11 +44,7 @@ if use_libcrypto
util_src += files('sha256_openssl.c')
util_deps += [dep_crypto]
else
assert(host_machine.endian() == 'little',
'The built-in SHA-256 implementation only supports little-endian CPUs. Enable use_libcrypto to use the OpenSSL version, or send a patch with a better implementation :)'
)
util_src += files('sha256_le.c')
util_src += files('sha256.c')
endif
if host_machine.system() == 'windows'

View file

@ -12,11 +12,6 @@
#include "util/stringops.h"
#include <string.h>
#include <SDL.h>
#if SDL_BYTEORDER != SDL_LIL_ENDIAN
#error "This SHA-256 is little-endian only"
#endif
typedef uint32_t sha256_word_t;
typedef uint8_t sha256_byte_t;