Path: blob/main/mail/archiveopteryx/files/patch-core__md5.cpp
16461 views
--- core/md5.cpp.orig 2014-03-10 13:44:59 UTC1+++ core/md5.cpp2@@ -52,7 +52,7 @@ void MD5::init()34void MD5::add( const char *str, uint len )5{6- register uint32 t;7+ uint32 t;89/* It's not possible to add() data, call hash(), then add more data10and call hash() again, because hash() destroys the accumulated11@@ -149,12 +149,9 @@ EString MD5::hash()12}13swapBytes( in, 14 );1415-#pragma GCC diagnostic push16-#pragma GCC diagnostic ignored "-Wstrict-aliasing"17/* Append length in bits and transform. */18((uint32 *)in)[14] = bits[0];19((uint32 *)in)[15] = bits[1];20-#pragma GCC diagnostic pop21transform();22swapBytes( (char *)buf, 4 );2324@@ -247,7 +244,7 @@ EString MD5::HMAC( const EString &secret2526void MD5::transform()27{28- register uint32 a, b, c, d;29+ uint32 a, b, c, d;30uint32 *inw = (uint32 *)in;3132a = buf[0];333435