1 2007-01-04 Sebastien Pouliot <sebastien@ximian.com>
3 * SymmetricTransform.cs: Fix previous fix (for #80439) as we were now
6 2007-01-03 Sebastien Pouliot <sebastien@ximian.com>
8 * SymmetricTransform.cs: Reduce inputCount if larger than the output
9 data can hold. Fix bug #80439.
11 2006-12-11 Sebastien Pouliot <sebastien@ximian.com>
13 * PKCS8.cs: Synchronize source with Mono.Security.dll
15 2006-09-27 Sebastien Pouliot <sebastien@ximian.com>
17 * RSAManaged.cs: Ensure that the results of Encrypt and Decrypt will
18 always be the same length as the key. If smaller then we left pad the
19 result with 0x00 (same integer, correct length for everyone). Fix bug
20 #79502 where an LDAP/SSL server didn't like the missing byte.
22 2006-09-05 Sebastien Pouliot <sebastien@ximian.com>
24 * RSAManaged.cs: Fix a NRE when decrypting without a private key
25 (#79269). We now throw a CryptographicException with an appropriate
28 2006-06-15 Sebastien Pouliot <sebastien@ximian.com>
30 * CryptoTools.cs: Fix offset in block processor. This fix the HMAC
31 algorithms when large buffer where used (with multiple calls to
34 2005-11-23 Sebastien Pouliot <sebastien@ximian.com>
36 * SymmetricTransform.cs: Virtualized some methods (like Dispose). Fix
39 2005-11-22 Sebastien Pouliot <sebastien@ximian.com>
41 * DSAManaged.cs: Don't export J if it wasn't imported (i.e. it was
42 calculated from the other parameters).
44 2005-10-21 Sebastien Pouliot <sebastien@ximian.com>
46 * SymmetricTransform.cs: Clone IV so it cannot be changed once the
47 transform starts. Generate a new IV if null is specified (not really
48 useful but compatible with MS behaviour). Added a check for IV length
51 2005-05-26 Ben Maurer <bmaurer@ximian.com>
53 * KeyPairPersistence.cs: Lock *before* checking if things are null
54 to prevent race conditions. Also, do not lock on typeof object.
56 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
58 * KeyPairPersistence.cs: Use PlatformID.Unix under NET_2_0.
60 2005-04-27 Sebastien Pouliot <sebastien@ximian.com>
62 * PKCS8.cs: New. Copied from Mono.Security.dll to allow support of
63 PKCS#12 files in X509Certificate for 2.0.
65 2005-04-18 Sebastien Pouliot <sebastien@ximian.com>
67 * SymmetricTransform.cs: Fixed a division by zero if someone changes
68 the feedback value to 0.
70 2005-03-30 Sebastien Pouliot <sebastien@ximian.com>
72 * SymmetricTransform.cs: Fixed a padding bug affecting that can occurs
73 when no padding is used.
75 2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
77 * DSAManaged.cs: PublicOnly now reports false when a key hasn't yet
79 * RSAManaged.cs: PublicOnly now reports false when a key hasn't yet
82 2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
84 * MACAlgorithm.cs: Added support for different padding modes (required
86 * SymmetricTransform.cs: Added support for ANSI X9.23 padding and
87 ISO 10126 padding modes (applies to all symmetric block ciphers).
89 2004-12-22 Sebastien Pouliot <sebastien@ximian.com>
91 * KeyPairPersistence.cs: Commented imperative asserts until it is
92 supported by the runtime.
94 2004-12-06 Sebastien Pouliot <sebastien@ximian.com>
96 * RSAManaged.cs: Implement key blinding for RSA decryption with, or
99 2004-11-23 Sebastien Pouliot <sebastien@ximian.com>
101 * PKCS1.cs: Fix PKCS#1 v1.5 decryption when the ciphertext isn't
102 exactly the same of the public key (which happens sometimes on Fx 1.1
103 probably because it doesn't do the last I2OSP operation to left pad
104 the resulting big integer with zeros).
106 2004-10-28 Sebastien Pouliot <sebastien@ximian.com>
108 * KeyPairPersistence.cs: Added localization for exceptions messages.
109 Also added more details (type and path) when an exception is thrown.
111 2004-09-29 Sebastien Pouliot <sebastien@ximian.com>
113 * RSAManaged.cs: KeySize is always a multiple of 8 bits (promotion to
114 a bigger size if required) to match MS implementation (and other
117 2004-09-16 Sebastien Pouliot <sebastien@ximian.com>
119 * CryptoConvert.cs: Fixed warning (l4) for unused variables.
120 * KeyPairPersistence.cs: Fixed warning (l4) for unused variable.
121 * PKCS1.cs: Added empty {} to fix warning about possible empty stmnt.
123 2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
125 * MACAlgorithm.cs: Removed the hardcoded PaddingMode.Zeros as this is
126 now selectable in Fx 2.0.
127 * SymmetricTransform.cs: Throw CryptographicException when CipherMode
128 CTS or OFB is being used (to match MS implementation).
130 2004-06-23 Sebastien Pouliot <sebastien@ximian.com>
132 * SymmetricTransform.cs: Reduce by one the number of block when
133 decrypting. This operation was in CryptoStream before but is only
134 required for decryption (which CryptoStream can't know).
137 2004-05-27 Sebastien Pouliot <sebastien@ximian.com>
139 * SymmetricTransform.cs: Fixed possible integer overflow. Added
140 missing exception handling in TransformBlock and TransformFinalBlock.
142 2004-05-01 Sebastien Pouliot <sebastien@ximian.com>
144 * CryptoConvert.cs: Synched with Mono.Security.dll. Fix bug #57941
145 (truncated key pair).
146 * RSAManaged.cs: Synched with Mono.Security.dll. Fix bug #57941
147 (truncated key pair).
149 2004-04-28 Sebastien Pouliot <sebastien@ximian.com>
151 * CryptoConvert.cs: In sync with Mono.Security.dll version.
152 * CryptoTools.cs: In sync with Mono.Security.dll version.
153 * DSAManaged.cs: Changed delegate to please FxCop.
154 * PKCS1.cs: In sync with Mono.Security.dll version.
155 * RSAManaged.cs: In sync with Mono.Security.dll version.
156 * SymmetricTransform.cs: Fixed a bug when offset > 0 in destination
157 buffer. Changed Array.Copy to Buffer.BlockCopy.
159 2004-04-23 Sebastien Pouliot <sebastien@ximian.com>
161 * KeyPairPersistence.cs: Completed key pair protection for both
162 Linux and Windows (protection done by runtime).
164 2004-04-08 Bernie Solomon <bernard@ugsolutions.com>
166 * PKCS1.cs: Use BitConverterLE
168 2004-04-06 Bernie Solomon <bernard@ugsolutions.com>
170 * CryptoConvert.cs: Add private methods to always
171 handle data as little endian (GetBytesLE, ToInt32LE, ToUInt32LE).
173 2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
175 * CryptoConvert.cs: Added support for public keys preceded by an
176 header like the one generated by "sn -e".
178 2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
180 * CryptoConvert.cs: Added exception for null and bad parameters.
181 * RSAManaged.cs: CryptographicException thrown when trying to export
182 the private key when only the public key is present (CRT aware).
184 2004-03-22 Sebastien Pouliot <sebastien@ximian.com>
186 * CryptoConvert.cs: Added new methods to convert [From|To]Hex. Added
187 new version of FromCapiPublicKeyBlob with an integer offset.
189 2004-02-06 Sebastien Pouliot <sebastien@ximian.com>
191 * DSAManaged.cs: Added an event after key generation (so that
192 DSACryptoServiceProvider can persist the keypair if required). Added
193 PublicOnly property (like 1.2) so we do not have to catch an exception
194 to know if a private key is present or not. Added a Random property so
195 we do not always have to create a RNG instance (not always required).
196 * RSAManaged.cs: Added an event after key generation (so that
197 DSACryptoServiceProvider can persist the keypair if required). Added
198 PublicOnly property (like 1.2) so we do not have to catch an exception
199 to know if a private key is present or not.
200 * SymmetricTransform.cs: This class was split from S.S.C.
201 SymmetricAlgorithm.cs so it could be reused in Mono.Security
202 assembly for other symmetric algorithms transforms.
204 2004-02-05 Sebastien Pouliot <sebastien@ximian.com>
206 * KeyPairPersistence.cs: New. Class to persist keypairs in an XML
207 format to mimic the CryptoAPI key containers.
209 2004-01-12 Sebastien Pouliot <spouliot@videotron.ca>
211 * CryptoConvert.cs: RSA doesn't start with a Q - at least that what
212 a strongname told me. Sorry Ron :(
214 2003-12-15 Sebastien Pouliot <spouliot@videotron.ca>
216 * MACAlgorithm.cs: Fixed difference between 1.0 and 1.1 framework.
217 The 1.0 framework is adding an additional padding block (empty)
218 to MAC when MACing an exact multiple of the TripleDES block size.
219 * PKCS1.cs: Fixed a typo which prevented "lame" (without OID)
220 signature verification.
222 2003-10-30 Sebastien Pouliot <spouliot@videotron.ca>
224 * CryptoConvert.cs: Fixed strongname generation for small exponents
225 (like 17). Part of the fixed for bug #50341.
227 2003-10-17 Sebastien Pouliot <spouliot@videotron.ca>
229 * CryptoConvert.cs: Added from Mono.Security to support StrongNames.
231 2003-07-05 Sebastien Pouliot <spouliot@videotron.ca>
233 * DSAManaged.cs: Fixed bugs that appeared with the new unit tests.
234 * RSAManaged.cs: Fixed bugs that appeared with the new unit tests.
236 2003-07-02 Zoltan Varga <vargaz@freemail.hu>
238 * PKCS1.cs DSAManaged.cs: Changed strange characters in comments to
239 human-readable ones, since they break XML export in monocov.
241 2003-06-15 Sebastien Pouliot <spouliot@motus.com>
243 * RSAManaged.cs: Now includes CRT (Chinese Remainder Theorem)
244 optimization when using the private key (DecryptValue). This
245 cut more than 5 seconds of nunit on my system (out of 14 sec
246 for complete asymmetric tests). Thanks to Ben Maurer for help!
248 2003-06-11 Sebastien Pouliot <spouliot@motus.com>
250 * DSAManaged.cs: Refactored from DSACryptoServiceProvider.cs. Cannot
251 be reused outside [ms]corlib because DSA constructor is internal :-(
253 * PKCS1.cs: Now support any hash algorithm when encoding PKCS 1.5
254 (i.e. not limited to pre-calculated values for known hashes). Some
255 other API changes to ease the use of other hash algorithms.
257 * RSAManaged.cs: Refactored from RSACryptoServiceProvider.cs. This
258 class is required for custom PKCS#1 padding in SSL (which is not
259 possible using RSACryptoServiceProvider).
261 2003-05-12 Sebastien Pouliot <spouliot@videotron.ca>
263 * PKCS1.cs: Corrected I2OSP to match PKCS#1 v.2.1 test vector
264 and fix the OAEP incompatibility issue.
266 2003-04-01 Sebastien Pouliot <spouliot@videotron.ca>
268 * PKCS1.cs: Corrected fix (partially) for the lame PKCS1 v1.5
269 signatures done without specifying an OID.
271 2003-03-01 Sebastien Pouliot <spouliot@videotron.ca>
273 * PKCS1.cs: Fix for some (lame) PKCS1 v1.5 signatures done
274 without specifying an OID.
276 2003-02-08 Sebastien Pouliot <spouliot@videotron.ca>
278 * CryptoTools.cs: Renamed namespace to match new location.
279 * PKCS1.cs: Renamed namespace to match new location.
280 * HMACAlgorithm.cs: New. Generic class to implement HMAC
281 using any hash algorithm (was in S.S.C.HMACSHA1.cs).
282 * MACAlgorithm.cs: New. Generic class to implement MAC
283 using any symmetric algorithm (was in S.S.C.MACTripleDES.cs).