remove sha256 endianness check, it actually works fine on big endian
i am an idiot i'm sorry
This commit is contained in:
parent
c2c1794c14
commit
f2b11c19f8
2 changed files with 1 additions and 10 deletions
|
@ -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'
|
||||
|
|
|
@ -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;
|
Loading…
Reference in a new issue