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