Commit Graph
30 Commits
Author SHA1 Message Date
Sebastien Pouliot 039fd253a6 2007-08-17 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Write cannot depend on buffer.Length (fix #82428)


svn path=/trunk/mcs/; revision=84281
2007-08-17 14:26:40 +00:00
Sebastien Pouliot c821640cdf 2007-05-16 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Fix another problem that can occurs with WriteByte.


svn path=/trunk/mcs/; revision=77516
2007-05-16 22:19:45 +00:00
Sebastien Pouliot 62bb959e67 2007-05-11 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Ensure TransformFinalBlock isn't called multiple 
	times. Fix bug #81597.


svn path=/trunk/mcs/; revision=77262
2007-05-11 20:48:42 +00:00
Sebastien Pouliot 89e0ca7f94 2007-03-22 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: 2.0 introduce different exceptions/behaviors in 
	corner cases.

svn path=/trunk/mcs/; revision=74817
2007-03-22 16:48:06 +00:00
Sebastien Pouliot eb606ae477 2007-03-05 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Rework Write to buffer the last block correctly.
	The new code also reduce memory allocations. Fix for #81008.


svn path=/trunk/mcs/; revision=73712
2007-03-05 14:26:04 +00:00
Zoltan Varga 61fdcc0f23 2006-02-03 Zoltan Varga <[email protected]>
* CryptoStream.cs: Add 'override' keyword to Dispose (bool) method in 2.0.

svn path=/trunk/mcs/; revision=56525
2006-02-03 14:12:56 +00:00
Sebastien Pouliot ccfef2f152 2005-06-10 Sebastien Pouliot <[email protected]>
* all: 2.0 beta2 fixes, i.e. mostly added [ComVisible(true)]


svn path=/trunk/mcs/; revision=45759
2005-06-10 14:42:08 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Sebastien Pouliot 0d0a717190 2004-06-23 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Removed the block reduction. This seems to be done
	only for Decryptor so it was moved to SymmetricTransform.

svn path=/trunk/mcs/; revision=30198
2004-06-23 14:25:11 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Sebastien Pouliot 2318a431a0 2004-05-26 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Fixed possible integer overflow.
	* FromBase64Transform.cs: Better exception handling and fixed possible
	integer overflow.
	* ToBase64Transform.cs: Better exception handling and fixed possible
	integer overflow.

svn path=/trunk/mcs/; revision=28213
2004-05-27 01:05:57 +00:00
Sebastien Pouliot f40db6fe6c 2004-05-07 Sebastien Pouliot <[email protected]>
* CipherMode.cs: Moved XML comments to monodoc.
	* CryptoConfig.cs: Changed Array.Copy to Buffer.BlockCopy.
	* CryptoStream.cs: Changed Array.Copy to Buffer.BlockCopy.
	* DSA.cs: Changed Array.Copy to Buffer.BlockCopy.
	* ICryptoTransform.cs: Moved XML comments to monodoc.
	* PasswordDeriveBytes.cs: Changed Array.Copy to Buffer.BlockCopy.
	* FromBase64Transform.cs: Moved XML comments to monodoc.

svn path=/trunk/mcs/; revision=26907
2004-05-07 11:35:22 +00:00
Sebastien Pouliot 56a1dfe6e8 2004-04-26 Sebastien Pouliot <[email protected]>
* AsymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
	globalization to exceptions. Already had 100% coverage.
	* AsymmetricKeyExchangeDeformatter.cs: Moved XML comments to monodoc.
	Already had 100% coverage.
	* AsymmetricKeyExchangeFormatter.cs: Moved XML comments to monodoc.
	Already had 100% coverage.
	* AsymmetricSignatureDeformatter.cs: Moved XML comments to monodoc.
	Already had 100% coverage.
	* AsymmetricSignatureFormatter.cs: Moved XML comments to monodoc.
	Already had 100% coverage.
	* CryptoAPITransform.cs: Unused by Mono (added note to monodoc).
	Class will stay at 0% coverage.
	* CryptoConfig.cs: Added globalization to exceptions. 98% coverage.
	* CryptographicException.cs: Added globalization to exceptions.
	Already had 100% coverage.
	* CryptoStream.cs: Added globalization to exceptions. Removed (unused)
	field _previousBlock to get 100% coverage.
	* CspParameters.cs: Moved XML comments to monodoc. Already had 100%
	coverage.
	* CspProviderFlags.cs: Moved XML comments to monodoc.
	* DeriveBytes.cs: Moved XML comments to monodoc. Already had 100%
	coverage.

svn path=/trunk/mcs/; revision=26022
2004-04-26 22:42:53 +00:00
Sebastien Pouliot 200c9a1de1 2004-02-12 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Remove the _blockSize assumptions because some
	Transforms could be different on Input/Output. Added a special case
	for cascading CryptoStreams in FlushFinalBlock.

svn path=/trunk/mcs/; revision=23024
2004-02-12 14:09:39 +00:00
Sebastien Pouliot 8950e1c0a2 2004-02-04 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: New implementation - should fix all known issues
	with the class (Read/WriteByte, reading by non-multiple of the
	block size, using Stream.Length and Stream.Position ...).
	* SymmetricAlgorithm.cs: Return an empty array when there's nothing
	to return (required for CryptoStream to work).

svn path=/trunk/mcs/; revision=22770
2004-02-04 19:08:38 +00:00
Sebastien Pouliot 7f269ce394 2003-10-07 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Commented CanTransformMultipleBlocks
	optimization - it simply doesn't work :(

svn path=/trunk/mcs/; revision=18737
2003-10-08 03:10:19 +00:00
Sebastien Pouliot 0641d42155 2003-10-04 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Fixed bug 49323. The CanTransformMultipleBlocks
	optimization in Read has been fixed for partial blocks.

svn path=/trunk/mcs/; revision=18586
2003-10-04 13:49:36 +00:00
Lluis Sanchez 883e5a9a06 * CryptoStream.cs: Added [In,Out] attributes to Read method.
svn path=/trunk/mcs/; revision=18044
2003-09-11 23:53:44 +00:00
Sebastien Pouliot 3e43dfe09d 2003-08-05 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Closing bug #40689. The Write method was re-written.
	* SymmetricAlgorithm.cs: Removed Lluis previous patch (it fails a unit
	test) and corrected a bug in FinalDecrypt.
	* RSACryptoServiceProvider.cs: Fixed different exceptions from .NET 1.0
	and 1.1.

svn path=/trunk/mcs/; revision=17090
2003-08-06 02:21:05 +00:00
Sebastien Pouliot 5134c9b0a9 2003-07-31 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Oops. Commited some errors :-(

svn path=/trunk/mcs/; revision=16957
2003-07-31 21:20:10 +00:00
Sebastien Pouliot edf6cb8512 2003-07-31 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Closing bug #46143. The Read method was re-written.

svn path=/trunk/mcs/; revision=16955
2003-07-31 20:58:17 +00:00
Sebastien Pouliot c0ce838a62 2003-07-30 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Fixed bug #46143 (exception) - however we dont
	returns the same result as MS. Class needs to be re-written.

svn path=/trunk/mcs/; revision=16908
2003-07-30 19:12:23 +00:00
Sebastien Pouliot 33dae0da5e 2003-04-06 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Partial fix for bug #40689 (workaround). Does not
	throw a NotSupportedException on closing a CryptoStream in read mode
	(like MS does but unlike MS documents).

svn path=/trunk/mcs/; revision=13244
2003-04-06 13:56:50 +00:00
Gonzalo Paniagua Javier 315c8a457f 2003-03-28 Gonzalo Paniagua Javier <[email protected]>
* CryptoStream.cs: fixed the previous fix. MS throws a NotSupportedExc
	when FlushFinalBlock is called twice. I've moved a few lines from Close
	to FlushFinalBlock and added the exception check.

svn path=/trunk/mcs/; revision=12879
2003-03-28 00:08:06 +00:00
Gonzalo Paniagua Javier 668bc9677f 2003-03-28 Gonzalo Paniagua Javier <[email protected]>
* CryptoStream.cs: don't Close the underlying stream in FlushFinalBlock.
	Fixes bug #40394.

svn path=/trunk/mcs/; revision=12878
2003-03-27 23:45:50 +00:00
Sebastien Pouliot aac3846615 2003-02-01 Sebastien Pouliot <[email protected]>
* AsymmetricSignatureFormatter.cs: Call abstract SetHashAlgorithm
	when CreateSignature(hash) is called.
	* CryptoStream.cs: Fixed some issues in constructor.
	* DSACryptoServiceProvider.cs: Fixed a bug (1 chance in 256) that
	a signature could be less than 40 bytes (which is invalid).

svn path=/trunk/mcs/; revision=11107
2003-02-02 04:26:31 +00:00
Sebastien Pouliot d3dadbbd8d 2002-12-30 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Implemented core. Not sure about many details -
	but it run the samples now (#30256).
	* CryptoStreamMode.cs: Added [Serializable] to enum declaration.
	* SymmetricAlgorithm.cs: Made some changes required for CryptoStream
	and to match more closely MS implementation. Also added little
	optimizations in TransformBlock.

svn path=/trunk/mcs/; revision=10006
2002-12-30 21:45:26 +00:00
Sebastien Pouliot 053b98da02 2002-10-13 Sebastien Pouliot <[email protected]>
* HashAlgorithm.cs: Added Dispose() to HashAlgorithm because it
	inherits ICryptoTransform
	* KeyedHashAlgorithm.cs: New implementation
	* HMACSHA1.cs: New (include a generic HMACAlgorithm as internal class)
	* MACTripleDES.cs: New (missing core implementation on generic MACAlgorithm)
	* CryptoStream.cs: Added limited functionalities to support HMACSHA1

svn path=/trunk/mcs/; revision=8221
2002-10-13 18:38:54 +00:00
Ravi Pratap M 76218d8771 2002-01-05 Ravi Pratap <[email protected]>
* CryptoAPITransform.cs, DESCryptoProvider.cs : MonoTODO attribute
	decoration.

	* HashAlgorithm.cs, MD5.cs, SHA1.cs, SHA256.cs, SHA384.cs : Ditto.

	* SHA512.cs, SymmetricAlgorithm.cs, ToBase64Transform.cs,
	AsymmetricAlgorithm.cs, CryptoStream.cs, DSA.cs, DSASignatureDeformatter.cs,
	DSASignatureFormatter.cs, SignatureDescription.cs : Ditto.

svn path=/trunk/mcs/; revision=1848
2002-01-05 06:10:24 +00:00
Thomas Neidhart f0b7d41fb9 * Initial versions of several classes, including
DSA base classes and CSP base classes

svn path=/trunk/mcs/; revision=1141
2001-10-11 15:30:20 +00:00