clang fix

This commit is contained in:
fireice-uk
2017-03-14 19:03:39 +00:00
parent b67d3fb0e4
commit 8d2f179f3e
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -33,6 +33,7 @@
#include <string.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
//Do a press any key for the windows folk. *insert any key joke here*
#ifdef _WIN32
@@ -56,6 +57,8 @@ int main(int argc, char *argv[])
SSL_library_init();
SSL_load_error_strings();
ERR_load_BIO_strings();
ERR_load_crypto_strings();
SSL_load_error_strings();
OpenSSL_add_all_digests();
const char* sFilename = "config.txt";
+7
View File
@@ -195,6 +195,13 @@ static inline void sub_word(uint8_t* key)
key[3] = Sbox[key[3]];
}
#ifdef __clang__
uint32_t _rotr(uint32_t value, uint32_t amount)
{
return (value >> amount) | (value << ((32 - amount) & 31));
}
#endif
__m128i soft_aeskeygenassist(__m128i key, uint8_t rcon)
{
uint32_t X1 = _mm_cvtsi128_si32(_mm_shuffle_epi32(key, 0x55));