X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6e52073fac7be205251b222f63cf2f61d1519364..8953292ef197b80c16d08b31830945fb7ac9ff8d:/apt-pkg/contrib/md5.h diff --git a/apt-pkg/contrib/md5.h b/apt-pkg/contrib/md5.h index 19b5bac6c..e280d714e 100644 --- a/apt-pkg/contrib/md5.h +++ b/apt-pkg/contrib/md5.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: md5.h,v 1.4 1999/08/02 03:07:47 jgg Exp $ +// $Id: md5.h,v 1.6 2001/05/07 05:06:52 jgg Exp $ /* ###################################################################### MD5SumValue - Storage for a MD5Sum @@ -28,12 +28,17 @@ #endif #include +#include +#include + +using std::string; +using std::min; class MD5Summation; class MD5SumValue { - friend MD5Summation; + friend class MD5Summation; unsigned char Sum[4*4]; public: @@ -54,7 +59,7 @@ class MD5SumValue class MD5Summation { - unsigned char Buf[4*4]; + uint32_t Buf[4]; unsigned char Bytes[2*4]; unsigned char In[16*4]; bool Done;