diff --git a/src/Gost.cpp b/src/Gost.cpp index 7d18e15..8981529 100644 --- a/src/Gost.cpp +++ b/src/Gost.cpp @@ -3,9 +3,6 @@ #include #include #include -#ifdef WIN32 -#include // for htoll -#endif #include "Gost.h" namespace i2p @@ -360,7 +357,8 @@ namespace crypto } } #ifdef WIN32 - ll[i] = htoll (c); + for (int k = 0; k < 8; k++) + buf[k] = ((uint8_t *)&c)[7-k]; #else ll[i] = htobe64 (c); // TODO: #endif