summaryrefslogtreecommitdiff
path: root/md2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-10 04:57:48 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-10 04:57:48 -0400
commit894874fe75ce079ad57e9d5e19813193b129152d (patch)
treefae5a8307351b8200238038f05a32f7e91e8006e /md2.cpp
parent4414b864cf69edc7e142c96fdca53bfa898de539 (diff)
downloadcryptopp-git-894874fe75ce079ad57e9d5e19813193b129152d.tar.gz
Whitespace checkin
Diffstat (limited to 'md2.cpp')
-rw-r--r--md2.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/md2.cpp b/md2.cpp
index 6ba07bc2..b0dc7e8b 100644
--- a/md2.cpp
+++ b/md2.cpp
@@ -8,8 +8,8 @@
*
* Part of the Python Cryptography Toolkit, version 1.1
*
- * Distribute and use freely; there are no restrictions on further
- * dissemination and usage except those imposed by the laws of your
+ * Distribute and use freely; there are no restrictions on further
+ * dissemination and usage except those imposed by the laws of your
* country of residence.
*
*/
@@ -20,7 +20,7 @@
NAMESPACE_BEGIN(CryptoPP)
namespace Weak1 {
-
+
MD2::MD2()
: m_X(48), m_C(16), m_buf(16)
{
@@ -58,18 +58,18 @@ void MD2::Update(const byte *buf, size_t len)
31, 26, 219, 153, 141, 51, 159, 17, 131, 20
};
- while (len)
+ while (len)
{
unsigned int L = UnsignedMin(16U-m_count, len);
memcpy(m_buf+m_count, buf, L);
m_count+=L;
buf+=L;
len-=L;
- if (m_count==16)
+ if (m_count==16)
{
byte t;
int i,j;
-
+
m_count=0;
memcpy(m_X+16, m_buf, 16);
t=m_C[15];
@@ -78,7 +78,7 @@ void MD2::Update(const byte *buf, size_t len)
m_X[32+i]=m_X[16+i]^m_X[i];
t=m_C[i]^=S[m_buf[i]^t];
}
-
+
t=0;
for(i=0; i<18; i++)
{