Fix debug dll assertions

+ cleanup/optimizations
This commit is contained in:
Kawe Mazidjatari
2022-04-06 00:49:17 +02:00
parent b336b37025
commit 36a9c2779b
8 changed files with 62 additions and 49 deletions

View File

@@ -24,7 +24,7 @@ protected:
uint32 m_h[8];
};
std::string sha256(std::string input);
string sha256(const string& input);
#define SHA2_SHFR(x, n) (x >> n)
#define SHA2_ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n)))