Author: spouliot
Date: 2006-06-16 09:33:02 -0400 (Fri, 16 Jun 2006)
New Revision: 61799
Modified:
branches/mono-1-1-13/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
branches/mono-1-1-13/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:
branches/mono-1-1-13/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
===================================================================
---
branches/mono-1-1-13/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
2006-06-16 13:26:41 UTC (rev 61798)
+++
branches/mono-1-1-13/mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
2006-06-16 13:33:02 UTC (rev 61799)
@@ -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:
branches/mono-1-1-13/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoTools.cs
===================================================================
---
branches/mono-1-1-13/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoTools.cs
2006-06-16 13:26:41 UTC (rev 61798)
+++
branches/mono-1-1-13/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoTools.cs
2006-06-16 13:33:02 UTC (rev 61799)
@@ -10,6 +10,8 @@
//
//
+// Copyright (C) 2004 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 +126,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