Skip to content

Commit

Permalink
2006-06-15 Sebastien Pouliot <sebastien@ximian.com>
Browse files Browse the repository at this point in the history
	* CryptoTools.cs: Fix offset in block processor. This fix the HMAC
	algorithms when large buffer where used (with multiple calls to
	TransformBlock).


svn path=/branches/mono-1-1-13/mcs/; revision=61799
  • Loading branch information
Sebastien Pouliot committed Jun 16, 2006
1 parent 4e322ad commit 0c4f37a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mcs/class/Mono.Security/Mono.Security.Cryptography/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-06-15 Sebastien Pouliot <sebastien@ximian.com>

* 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 <sebastien@ximian.com>

* CryptoConvert.cs: Make sure we can import a keypair into our RSA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// (C) 2004 Novell (http://www.novell.com)
//

//
// 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
Expand Down Expand Up @@ -124,7 +126,7 @@ public void Core (byte[] rgb, int ib, int cb)
// 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;
}

Expand Down

0 comments on commit 0c4f37a

Please sign in to comment.