* support-test-*.cs: Rename from test-*-p2.cs.
[mono.git] / mcs / class / Mono.Security / Mono.Security.Cryptography / ChangeLog
1 2005-11-23  Sebastien Pouliot  <sebastien@ximian.com>
2
3         * SymmetricTransform.cs: Synched with corlib version (IV behaviour for
4         NET_2_0). Virtualized some methods (like Dispose). Fix bug #76801.
5
6 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7
8         * KeyPairPersistence.cs: Use PlatformID.Unix under NET_2_0. 
9         * PKCS8.cs: In sync with corlib;
10
11 2005-04-18  Sebastien Pouliot  <sebastien@ximian.com> 
12  
13         * Null.cs: New "null" symmetric encryption for debugging. This class 
14         isn't (and shouldn't be) built by default.
15         * SymmetricTransform.cs: Fixed a division by zero if someone changes 
16         the feedback value to 0.
17         * SHA224Managed.cs: Fixed warning about unused private constant.
18
19 2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>
20
21         * SymmetricTransform.cs: Fixed a padding bug affecting that can occurs
22         when no padding is used.
23
24 2005-03-07  Sebastien Pouliot  <sebastien@ximian.com>
25
26         * MD2Managed.cs: Removed memory allocation from the transform method.
27         * MD4Managed.cs: Moved memoty allocation to constructor (from init).
28         * SHA224Managed.cs: Fixed bug #73404 which gaves bad results when the
29         digested data is longer than 2^32 bits.
30
31 2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
32
33         * SymmetricTransform.cs: Added support for ANSI X9.23 padding and
34         ISO 10126 padding modes (applies to all symmetric block ciphers).
35
36 2004-12-22  Sebastien Pouliot  <sebastien@ximian.com>
37
38         * KeyPairPersistence.cs: Commented imperative asserts until it is 
39         supported by the runtime.
40
41 2004-12-06  Sebastien Pouliot  <sebastien@ximian.com>
42
43         * RSAManaged.cs: Implement key blinding for RSA decryption with, or
44         without, using CRT.
45
46 2004-11-23  Sebastien Pouliot  <sebastien@ximian.com>
47
48         * PKCS1.cs: Fix PKCS#1 v1.5 decryption when the ciphertext isn't 
49         exactly the same of the public key (which happens sometimes on Fx 1.1
50         probably because it doesn't do the last I2OSP operation to left pad
51         the resulting big integer with zeros).
52
53 2004-11-10  Sebastien Pouliot  <sebastien@ximian.com>
54
55         * RC4.cs: Fixed RC4 for compatibility with .NET 2.0. The algorithm is 
56         OK but the check for IV, unused for stream ciphers, has changed.
57
58 2004-10-28  Sebastien Pouliot  <sebastien@ximian.com>
59
60         * KeyPairPersistence.cs: Added localization for exceptions messages.
61         Also added more details (type and path) when an exception is thrown.
62
63 2004-09-29  Sebastien Pouliot  <sebastien@ximian.com>
64
65         * RSAManaged.cs: In synch with corlib. KeySize is now always a 
66         multiple of 8 bits. Fix #66929.
67
68 2004-09-17  Sebastien Pouliot  <sebastien@ximian.com>
69
70         * CryptoConvert.cs: In synch with corlib version. Fixed all level 4 
71         compilation warnings.
72         * KeyPairPersistence.cs: In synch with corlib version. Fixed all level
73         4 compilation warnings.
74         * PKCS1.cs: In synch with corlib version. Fixed all level 4 
75         compilation warnings.
76         * SHA224Managed.cs: Fixed all level 4 compilation warnings.
77
78 2004-09-17  Sebastien Pouliot  <sebastien@ximian.com>
79
80         * SHA224.cs: New. Abstract class for all SHA224 implementations.
81         * SHA224Managed.cs: New. Managed implementation of SHA224 (a SHA256
82         derivate) as specified in RFC3874 and FIPS 180-2 Change Notice.
83
84 2004-06-23  Sebastien Pouliot  <sebastien@ximian.com>
85
86         * SymmetricTransform.cs: Reduce by one the number of block when 
87         decrypting. This operation was in CryptoStream before but is only
88         required for decryption (which CryptoStream can't know). 
89         Fix bug #60573.
90
91 2004-05-27  Sebastien Pouliot  <sebastien@ximian.com>
92
93         * ARC4Managed.cs: Added missing exception handling in TransformBlock 
94         and TransformFinalBlock.
95         * SymmetricTransform.cs: Fixed possible integer overflow. Added 
96         missing exception handling in TransformBlock and TransformFinalBlock.
97
98 2004-05-10  Sebastien Pouliot  <sebastien@ximian.com>
99
100         * PKCS8.cs: Fixed negative Version check.
101         * MD2Managed.cs: Added readonly to static array constants.
102         * MD4Managed.cs: Removed unrequired memory allocation in MD4Transform.
103
104 2004-05-01  Sebastien Pouliot  <sebastien@ximian.com>
105
106         * CryptoConvert.cs: Added support for truncated, but still valid, RSA
107         private key blob. Fix #57941 (couldn't sign with nunit key).
108         * RSAManaged.cs: Normalized the size of D when not present. This 
109         allows us to output a compatible base64 representation of 1024bits 0.
110
111 2004-04-28  Sebastien Pouliot  <sebastien@ximian.com>
112
113         * SymmetricTransform.cs: Fixed bug when offset > 0 in destination 
114         buffer.
115
116 2004-04-22  Sebastien Pouliot  <sebastien@ximian.com>
117
118         * CryptoConvert.cs: FxCop-ized. Sealed class. Use Buffer.BlockCopy.
119         * CryptoTools.cs: FxCop-ized. Sealed KeyBuilder class. Delay creation
120         of RNG object. Use Buffer.BlockCopy.
121         * DiffieHellman.cs: FxCop-ized. Removed public constructor.
122         * DiffieHellmanManaged.cs: FxCop-ized. Actualized with changes from
123         BigInteger.
124         * KeyPairPersistance.cs: FxCop-ized. Updated version for management
125         of keypairs.
126         * MD2Managed.cs: Use Buffer.BlockCopy instead of Array.Copy.
127         * PKCS1.cs: FxCop-ized. Sealed class. Use Buffer.BlockCopy instead of
128         Array.Copy. Also includes endian patches from Bernie Solomon.
129         * PKCS8.cs: FxCop-ized. Sealed class. 
130         * RSAManaged.cs: FxCop-ized. Actualized with changes from BigInteger.
131         * SymmetricTransform.cs: Use Buffer.BlockCopy instead of Array.Copy.
132
133 2004-04-20  Sebastien Pouliot  <sebastien@ximian.com>
134
135         * CryptoConvert.cs: Synched with corlib version to get endian fixes 
136         from Bernie Solomon.
137
138 2004-03-23  Sebastien Pouliot  <sebastien@ximian.com>
139
140         * CryptoConvert.cs: Added exception for null and bad parameters.
141         * RSAManaged.cs: CryptographicException thrown when trying to export
142         the private key when only the public key is present (CRT aware).
143
144 2004-03-22  Sebastien Pouliot  <sebastien@ximian.com>
145
146         * CryptoConvert.cs: Added new methods to convert [From|To]Hex. Added
147         new version of FromCapiPublicKeyBlob with an integer offset.
148
149 2004-03-10  Sebastien Pouliot  <sebastien@ximian.com>
150
151         * PKCS8.cs: Added EncodeRSA, EncodeDSA and completed GetBytes() so it
152         is now possible to encode PKCS8 files (this is required to encode 
153         PKCS12 files).
154
155 2004-02-15  Sebastien Pouliot  <sebastien@ximian.com>
156
157         * ARC4Managed.cs: Removed all % 256 (modulo) because typecasting to 
158         byte already ensure the result would be correct (as suggested by 
159         Technoboy). Now use KeyBuilder to create new keys.
160
161 2004-02-13  Sebastien Pouliot  <sebastien@ximian.com>
162
163         * DHKeyGeneration.cs: New. Enumuration of possible key generation for
164         Diffie-Hellman. Contributed by Pieter Philippaerts (mentalis.org).
165         * DHParameters.cs: New. Structure to hold the different elements of a
166         Diffie-Hellman key. Contributed by Pieter Philippaerts (mentalis.org).
167         * DiffieHellman.cs: New. Astract class as base for all Diffie-Hellman
168         implementations. Contributed by Pieter Philippaerts (mentalis.org).
169         * DiffieHellmanManaged.cs: New. Managed implementation of the Diffie-
170         Hellman key agreement algorithm. Contributed by Pieter Philippaerts.
171
172 2004-02-09  Sebastien Pouliot  <sebastien@ximian.com>
173
174         * PKCS1.cs: New. Copied from corlib. Required for RSAManaged.
175         * RSAManaged.cs: New. Copied from corlib. Required for TLS - some
176         parts (MD5SHA1) cannot work with the default RSACryptoServiceProvider.
177
178 2004-02-06  Sebastien Pouliot  <sebastien@ximian.com>
179
180         * CryptoTools.cs: New. Copied from corlib to offer the sames services
181         to symmetric algorithms in Mono.Security assembly.
182         * KeyPairPersistance.cs: Provides a similar to CryptoAPI persistence 
183         mechanism for keypairs (based on CspParameters).
184         * SymmetricTransform.cs: New. Copied from corlib to offer the sames 
185         services to symmetric algorithms in Mono.Security assembly.
186
187 2004-01-12  Sebastien Pouliot  <spouliot@videotron.ca>
188
189         * CryptoConvert.cs: RSA doesn't start with a Q - at least that what
190         a strongname told me. Sorry Ron :(
191
192 2003-11-27  Sebastien Pouliot  <spouliot@videotron.ca>
193
194         * MD4.cs: New. Asbtract class for all MD4 implementations. WARNING:
195         The MD4 algorithm is BROKEN (collisions) and SHOULDN'T be used in 
196         NEW designs. However some higher level algorithms (like NTLM) requires 
197         MD4 (and may even be secure using it). YOU'RE WARNED!
198         * MD4Managed.cs: New. Managed implementation of MD4 (RFC1320).
199         * PKCS8.cs: New. Added Private-Key Information Syntax Standard as a 
200         building block for PKCS12.
201
202 2003-10-30  Sebastien Pouliot  <spouliot@videotron.ca>
203
204         * CryptoConvert.cs: Fixed strongname generation for small exponents 
205         (like 17). Part of the fixed for bug #50341.
206
207 2003-06-19  Nick Drochak <ndrochak@gol.com>
208
209         * CryptoConvert.cs: Work around for mcs? bug 45127.
210
211 2003-03-07  Sebastien Pouliot  <spouliot@videotron.ca>
212
213         * ARC4Managed.cs: New. Implementation of the Alleged RC4(tm)
214         stream cipher in managed code (required for SSL/TLS).
215         * CryptoConvert.cs: New. Helper class to help convert between
216         Windows crypto structures and .NET crypto classes (required
217         for security tools).
218         * MD2.cs: New. Abstract class for all MD2 hash implementations.
219         * MD2Managed.cs: New. Managed implementation of the MD2 hash
220         algorithm (required for old, but still valid, X.509 certificates).
221         * RC4.cs: New. Abstract class for all RC4 stream cipher 
222         implementations.