workingBlock should be the InputBlockSize and currentBlock the
OutputBlockSize. Allocate currentBlock lazily.
Test contributed by Bassam Tabbara.
Fixes bug #644740.
2009-09-22 Sebastien Pouliot <[email protected]>
* CryptoStreamTest.cs: Add (nunit-ized) test cases provided by
Santa Marta (via Atsushi) as repro for bugs #539288 and #539229
In System.Security.Cryptography:
2009-09-22 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Fix [Input|Output]BlockSize for custom streams.
Patches by Santa Marta (via Atsushi).
[Fix bug #539288 and #539229]
svn path=/trunk/mcs/; revision=142435
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
* CryptoStreamTest.cs, DSACryptoServiceProviderTest.cs,
HashAlgorithmTest.cs, PKCS1MaskGenerationMethodTest.cs,
RSAPKCS1KeyExchangeFormatterTest.cs, ToBase64TransformTest.cs:
Use [Category ("NotDotNet")] for tests failing only on the MS runtime
(so they are now executed on Mono).
svn path=/trunk/mcs/; revision=38614
* CryptoStreamTest.cs: Undo some previous fixes that have changed from
2.0 Nov CTP. Stream chaining was working on Nov CTP but are failing
again with Dec.
svn path=/trunk/mcs/; revision=38317
* CryptoStreamTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
* DSACryptoServiceProviderTest.cs: Fixed tests to execute properly on
2.0 Nov CTP.
* PaddingModeTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
* RSACryptoServiceProviderTest.cs: Fixed tests to execute properly on
2.0 Nov CTP.
svn path=/trunk/mcs/; revision=38061
* AllTests2.cs: Updated to NUnit 2.2 Assert.
* CipherModeTest.cs: New. Tests supported CipherMode for all
SymmetricAlgorithm included in the framework (enum contains two more
modes that aren't implemented in any Fx version).
* CryptoConfigTest.cs: Ajusted new OID (for old names) in Fx 2.0.
* CryptoStreamTest.cs: Fixed different reported exception in Fx 2.0.
Fixed a bad test.
* CspProviderFlagsTest.cs: New. Test the values of the enum.
* DSACryptoServiceProviderTest.cs: Added new tests for new public
properties and methods added in Fx 2.0. Duplicated test to import a
key pair into a disposed instance (works in Fx 2.0). Removed all
[Ignore]s in NET_2_0 as the MS class/runtime has been fixed.
* DSASignatureDeformatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
different reported exception in Fx 2.0.
* DSASignatureFormatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
different reported exception in Fx 2.0.
* HMACRIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
* HMACSHA1Test.cs: Fixed tests so they work on both NET_1_1 and
NET_2_0 profiles (as HMACSHA1 changed it's base class).
* HashAlgorithmTest.cs: Fixed different reported exception in Fx 2.0.
Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
* MACTripleDESTest.cs: Fixed tests so they work on both NET_1_1 and
NET_2_0 profiles.
* PKCS1MaskGenerationMethodTest.cs: Removed [Ignore] in NET_2_0 as the
MS class has been fixed.
* PaddingModeTest.cs: Added new tests for the two new padding mode
introduced in Fx 2.0. Converted to NUnit 2.2.
* PasswordDeriveBytesTest.cs: Removed [ExpectedException] for
StrangeBehaviour test as it is fixed in Fx 2.0.
* RC2Test.cs: Changed exception from CryptographicException to
CryptographicUnexpectedOperationException for Fx 1.1/2.0.
* RIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
* RSACryptoServiceProviderTest.cs: Added new tests for new public
properties and methods added in Fx 2.0. Duplicated test to import a
key pair into a disposed instance (works in Fx 2.0). Duplicated test
to sign with a null OID (Fx 2.0 use SHA1 oid in this case).
* RSAOAEPKeyExchangeDeformatterTest.cs: Changed exception for a key
exchange with no key (to match Fx 2.0).
* RSAOAEPKeyExchangeFormatterTest.cs: Changed exception for a key
exchange with no key (to match Fx 2.0).
* RSAPKCS1KeyExchangeFormatterTest.cs: Changed exception for a key
exchange with no key (to match Fx 2.0). Removed [Ignore] in NET_2_0 as
the MS class/runtime has been fixed.
* RSAPKCS1SignatureDeformatterTest.cs: Null keys, in constructor or in
SetKey method, now throw an ArgumentNullException in Fx 2.0.
* RSAPKCS1SignatureFormatterTest.cs: Null keys, in constructor or in
SetKey method, now throw an ArgumentNullException in Fx 2.0.
* Rfc2898DeriveBytesTest.cs: Typecasted a null as a string.
* SymmetricAlgorithm2Test.cs: In Fx 2.0 an empty IV now throws a
CryptographicException.
* ToBase64TransformTest.cs: Fixed different reported exception in Fx 2.0.
Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
svn path=/trunk/mcs/; revision=30836
* CryptoStreamTest.cs: Added two tests for bug #60573. One shows that
an encryptor doesn't reduce the number of block on Write while the
second shows that a decryptor does reduce the number of blocks on
Write.
svn path=/trunk/mcs/; revision=30200
* CryptoStreamTest.cs: Added new tests for [From|To]Base64Transform
(InputBlockSize != OutputBlockSize) and for cascading CryptoStreams.
svn path=/trunk/mcs/; revision=23025
* CryptoStreamTest.cs: Added many more tests for every problem found
with CryptoStream using code samples from the internet.
svn path=/trunk/mcs/; revision=22771
* CryptoStreamTest.cs: Added test case from bugzilla #49323 from
Carlos Guzm�n �lvarez and some small tests for empty stream with
different PaddingMode (as found by Lluis Sanchez Gual).
svn path=/trunk/mcs/; revision=18587
* CryptoStreamTest.cs: New. Very basic test for CryptoStream + the
test case from bugzilla #46143 from Joerg Rosenkranz.
* RSACryptoServiceProviderTest.cs: Fixed some exceptions that are
different from .NET 1.0 and 1.1.
svn path=/trunk/mcs/; revision=16954