Author: spouliot
Date: 2006-06-15 15:20:20 -0400 (Thu, 15 Jun 2006)
New Revision: 61767
Modified:
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoTools.cs
Log:
2006-06-15 Sebastien Pouliot <[EMAIL PROTECTED]>
* CryptoTools.cs: Fix offset in block processor. This fix the HMAC
algorithms when large buffer where used (with multiple calls to
TransformBlock).
Modified: trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
2006-06-15 19:18:08 UTC (rev 61766)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
2006-06-15 19:20:20 UTC (rev 61767)
@@ -1,3 +1,9 @@
+2006-06-15 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * CryptoTools.cs: Fix offset in block processor. This fix the HMAC
+ algorithms when large buffer where used (with multiple calls to
+ TransformBlock).
+
2006-02-28 Sebastien Pouliot <[EMAIL PROTECTED]>
* CryptoConvert.cs: Make sure we can import a keypair into our RSA
Modified:
trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoTools.cs
===================================================================
--- trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoTools.cs
2006-06-15 19:18:08 UTC (rev 61766)
+++ trunk/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoTools.cs
2006-06-15 19:20:20 UTC (rev 61767)
@@ -6,10 +6,8 @@
// Sebastien Pouliot <[EMAIL PROTECTED]>
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
//
-
-//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
@@ -124,7 +122,7 @@
// 3. transform any other full block in
specified buffer
int b = (int) ((cb - n) / blockSize);
for (int i=0; i < b; i++) {
- transform.TransformBlock (rgb, n,
blockSize, block, 0);
+ transform.TransformBlock (rgb, n + ib,
blockSize, block, 0);
n += blockSize;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches