2004-08-31 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / ChangeLog
1 2004-08-31  Tim Coleman <tim@timcoleman.com>
2         * EncryptedXml.cs SymmetricKeyWrap.cs: 
3                 Get symmetric key wrap to work for AES keys.
4
5 2004-08-30  Tim Coleman <tim@timcoleman.com>
6         * EncryptedXml.cs: Implement lots of XML Encryption code.
7         * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
8         * XmlSignature.cs: Add NET_2_0 check around EncryptedKey
9
10 2004-08-30  Atsushi Enomoto <atsushi@ximian.com>
11
12         * KeyInfo.cs : NET_1_1 build fix.
13
14 2004-08-29  Tim Coleman <tim@timcoleman.com>
15         * EncryptedKey.cs: Fix element name when generating XML.
16         * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
17         * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
18         * KeyInfoName.cs: Add missing constructor
19         * SymmetricKeyWrap.cs: Add untested TripleDES key wrap 
20         algorithms for encryption/decryption
21         * XmlSignature.cs: Add EncryptedKey constant.
22         * EncryptedData.cs: Add .NET 2.0 method stubs.
23
24 2004-07-20  Atsushi Enomoto <atsushi@ximian.com>
25
26         * Signature.cs : Fixed NextElementPos() that incorrectly examined
27           node matching.
28
29 2004-07-07  Sebastien Pouliot  <sebastien@ximian.com>
30
31         * EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and 
32         XmlEncElementContentUrl.
33         * X509IssuerSerial.cs: Make constructor internal so it doesn't show up
34         in corcompare results for NET_2_0 profile.
35
36 2004-06-17  Sebastien Pouliot  <sebastien@ximian.com>
37
38         * KeyInfoX509Data.cs: Removed old internal IssuerSerial for the 
39         undocumented structure (now documented, and public, in Fx 2.0).
40         * X509IssuerSerial.cs: Use structure as public in NET_2_0 and as 
41         internal before that.
42
43 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
44
45         * SignedXml.cs: API signature fixes
46
47 2004-06-04  Atsushi Enomoto <atsushi@ximian.com>
48
49         * SignedXml.cs : Complete fix for bug #59545. Support #xpointer(id()).
50           Namespace fixup is required when signing prefixed xml.
51
52 2004-06-04  Atsushi Enomoto <atsushi@ximian.com>
53
54         * SignedXml.cs : Fix for bug #59545. Handle #xpointer(/) as document.
55
56 2004-05-31  Atsushi Enomoto <atsushi@ximian.com>
57
58         * SignedXml.cs : partial fix for bug #59165 that does not output
59           namespace that conflicts with element's namespace.
60
61 2004-05-13  Sebastien Pouliot  <sebastien@ximian.com>
62
63         * SignedXml.cs: Update TODO informations.
64
65 2004-05-13  Atsushi Enomoto <atsushi@ximian.com>
66
67         * XmlDsigBase64Transform.cs :
68           LoadInput() should retrieve all the descendants.
69           GetOutput() should handle nodes without digging into child nodes.
70
71 2004-05-05  Atsushi Enomoto <atsushi@ximian.com>
72
73         * SignedXml.cs,
74           Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
75         * XmlDsigBase64Transform.cs : Should not output the content of the
76           selected element nodes. Put text content only those text nodes are
77           in the node list.
78         * XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
79         * XmlDsigXsltTransform.cs : Use XmlResolver to load document and
80           to transform. Throw null reference exception explicitly when
81           the input was not loaded.
82
83 2004-04-02  Lluis Sanchez Gual  <lluis@ximian.com>
84
85         * XmlDsigEnvelopedSignatureTransform.cs, XmlDsigXPathTransform.cs,
86         XmlDsigXsltTransform.cs: Fixed build for net_1_0 profile.
87
88 2004-03-30  Sebastien Pouliot  <sebastien@ximian.com>
89
90         * Reference.cs: Changed code to use CryptoConfig to create transforms.
91         This is "the" way to do it (e.g. to allow new transforms to be added)
92         but cause problems when using VS.NET for debugging. Old code is still
93         present, but commented, for that cause.
94
95 2004-03-27  Atsushi Enomoto <atsushi@ximian.com>
96
97         * SignedXml.cs : namespace nodes also should be supplied for enveloped
98           objects.
99         * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
100
101 2004-03-27  Atsushi Enomoto <atsushi@ximian.com>
102
103         * SignedXml.cs : XPath transformation output is not type of Stream.
104           Fix to support them by canonicalizing it.
105
106 2004-03-27  Atsushi Enomoto <atsushi@ximian.com>
107
108         * XmlDsigXsltTransform.cs : GetOutput() now just returns
109           transformation output.
110
111 2004-03-27  Atsushi Enomoto <atsushi@ximian.com>
112
113         * SignedXml.cs : Added xmlns support for Manifest.
114
115 2004-03-26  Sebastien Pouliot  <sebastien@ximian.com>
116
117         * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
118         This should help us to validate more tests from the Phaos suite.
119         Note: Microsoft doesn't support this and we only support it for
120         verification (not signature generation).
121         * SignedXml.cs: Added support for Manifest, including recursive 
122         manifests. Made some changes to reuse existing code as much as 
123         possible. Better support for local/remote files - but requires
124         catching an Uri exception for local files :-(.
125         * XmlSignature.cs: Added constants for Manifest element and URI.
126
127 2004-03-26  Atsushi Enomoto <atsushi@ximian.com>
128
129         * SignedXml.cs :
130           - Use specified (or default) XmlResolver to get external resource,
131             instead of using WebRequest directly. Also modified it easier.
132           - ApplyTransform() : Clone only when it is required. Handle 
133             transformation output other than Stream.
134           - Even if applicable key was not found in GetHash(), don't throw
135             crypto exception every time and just return false (MS does it).
136             Throw an exception only when no key was specified as KeyInfo.
137         * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
138           incorrectly set InputTypes internally.
139         * XmlDsigXPathTransform.cs : Context namespace nodes in loaded 
140           transform parameter (i.e. <XPath>..</XPath>) should be registered
141           to XsltContext. Otherwise prefix binding error occurs.
142           Just filter attribute node, instead of filtering attribute children.
143
144 2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>
145
146         * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return 
147         false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
148         -retrieval-method.xml in the Phaos test suite.
149
150 2004-03-24  Atsushi Enomoto <atsushi@ximian.com>
151
152         * Reference.cs, Signature.cs : They should keep input element and hence
153           keep namespace context nodes on LoadXml() as same as SignedInfo.
154         * SignedXml.cs : Fixed SignedInfoTransformed() to fill context 
155           namespace nodes into the input document (unlike other classes, there
156           seems no other way to keep ns-nodes here).
157           Now some of W3C phaos xmldsig test passes.
158
159 2004-03-23  Atsushi Enomoto <atsushi@ximian.com>
160
161         * SignedInfo.cs : It holds input element and directly returns it
162           unless the properties are not set.
163           Throw CryptographicException when Reference is empty *and* GetXml()
164           is *created*. (when just returning input element, no exception is
165           thrown).
166
167 2004-03-23  Atsushi Enomoto <atsushi@ximian.com>
168
169         * DataObject.cs : It now holds element instead of each parameters.
170           Avoid loading element content to different document unless its
171           properties were modified (to keep namespace node context).
172
173 2004-03-20 Sebastien Pouliot  <sebastien@ximian.com>
174
175         * SignedXml.cs: Removed unused (and commented) ComputeHash method.
176
177 2004-03-19  Atsushi Enomoto <atsushi@ximian.com>
178
179         * XmlDsigXPathTransform.cs : just found stupid bug.
180
181 2004-03-19  Sebastien Pouliot  <sebastien@ximian.com>
182
183         * SignedXml.cs: Lot of small changes to complete TODOs and to match 
184         the new unit tests.
185
186 2004-03-17  Sebastien Pouliot  <sebastien@ximian.com>
187
188         * SignedXml.cs: The old method was working for creating signature -
189         so it was reintroduced for (only) this case.
190
191 2004-03-17  Atsushi Enomoto <atsushi@ximian.com>
192
193         * SignedXml.cs : the result from enveloped signature transform should
194           be canonicalized before getting its hash.
195         * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
196           if the node is Signature itself it is not allowed.
197           PreserveWhitespace is required.
198
199 2004-03-16  Sebastien Pouliot  <sebastien@ximian.com>
200
201         * SignedXml.cs: Changed (again). This time we use the Stream when 
202         loading the document. We now pass 14 out of 15 of the Merlin's
203         tests (including one that MS fails). The only failing test is the
204         one that use the EnvelopedTransform (unfinished).
205
206 2004-03-16  Sebastien Pouliot  <sebastien@ximian.com>
207
208         * SignedXml.cs: Commented my last changes to SignedXml as it made other
209         unis tests fail (in the c14n-izer).
210
211 2004-03-16  Atsushi Enomoto <atsushi@ximian.com>
212
213         * XmlDsigNodeList.cs : removed BOM from code file.
214
215 2004-03-16  Atsushi Enomoto <atsushi@ximian.com>
216
217         * XmlDsigNodeList.cs : added.
218         * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
219         * XmlDsigEnvelopedSignatureTransform.cs :
220           Implemented GetOutput(). However, it is totally MS behavior
221           dependent and not based on the spec (we can reimplement it based on
222           improved XmlDsigXPathTransform).
223         * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
224
225 2004-03-15  Sebastien Pouliot  <sebastien@ximian.com>
226
227         * SignedXml.cs: Now use the original Signature element before applying
228         the C14N transformation. Added a check for null in LoadXml.
229
230 2004-03-14  Atsushi Enomoto <atsushi@ximian.com>
231
232         * XmlDsigXPathTransform.cs : implemented GetOutput() (with some 
233           internal XPath context classes).
234
235 2004-03-13  Atsushi Enomoto <atsushi@ximian.com>
236
237         * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
238           and LoadInput() should just load transformed document.
239           Transformation should be done in GetOutput() because either of the
240           stylesheet or input can be loaded in prior. Adjusted code format.
241
242 2004-03-12  Sebastien Pouliot  <sebastien@ximian.com>
243
244         * Signature.cs: KeyInfo isn't required in schema.
245         * SignedInfo.cs: Added support for missing HMACOutputLength.
246         * SignedXml.cs: Added support to download a reference (experimental).
247         Now throw exception for unknown hash algorithm or canonicalization 
248         methods. Changed GetPublicKey to iterate all available keys (not just
249         the first one).
250
251 2004-03-09  Atsushi Enomoto <atsushi@ximian.com>
252
253         * KeyInfo.cs : Attribute Id was not handlded.
254         * KeyInfoX509Data.cs : all array members return null when there are
255           no such contents. Just find child elements, not descendants.
256         * SignedXml.cs : key is not always required when CheckSignature() is
257           called.
258         * XmlDsigXsltTransform.cs : LoadInput should allow node list.
259         * XmlSignature.cs : added GetChildElements().
260
261 2004-03-09  Atsushi Enomoto <atsushi@ximian.com>
262
263         * KeyInfoX509Data.cs : trivial local var name fix.
264
265 2004-03-09  Atsushi Enomoto <atsushi@ximian.com>
266
267         * KeyInfoX509Data.cs,
268           Reference.cs,
269           SignedInfo.cs,
270           XmlSignature.cs : GetElementsByTagName() should be eliminated or
271           at least should use namespace URI.
272
273 2004-03-04  Atsushi Enomoto <atsushi@ximian.com>
274
275         * KeyInfo.cs :
276           Fixed LoadXml() to skip text nodes as MS.NET does.
277           Uncommented out RSAKeyValue.
278         * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
279           that incorrectly acquires descendants. Throw CryptographicException
280           if required elements were not found.
281         * Transform.cs : added internal GetResolver().
282         * XmlDsigXPathTransform.cs,
283           XmlDsigXsltTransform.cs : use XmlResolver.
284
285 2004-02-19  Tim Coleman <tim@timcoleman.com>
286         * SymmetricKeyWrap.cs:
287                 Add AES Key Wrap
288         * EncryptedXml.cs:
289                 Add calls to SymmetricKeyWrap
290
291 2004-02-11  Sebastien Pouliot  <sebastien@ximian.com>
292
293         * Reference.cs: Added LoadInnerXml to transforms. Removed unused 
294         variable.
295         * Transform.cs: Import GetInnerXml in GetXml.
296         * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
297         allocations.
298         * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
299         * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath 
300         expression and LoadInput. It nows match MS implementation but doesn't
301         work like I think it should (but neither is MS implementation).
302
303 2004-02-10  Tim Coleman <tim@timcoleman.com>
304         * DataReference.cs EncryptedKey.cs EncryptedXml.cs
305         * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
306         * X509IssuerSerial.cs XmlDecryptionTransform.cs:
307                 Add new classes for Xml Encryption in 1.2
308         * CipherData.cs CipherReference.cs EncryptedData.cs
309         * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
310                 Change NamespaceURI reference to EncryptedXml class.
311                 Make compliant with 1.2
312         * XmlEncryption.cs:
313                 Add new entity names.
314
315
316 2004-02-07  Tim Coleman <tim@timcoleman.com>
317         * CipherData.cs CipherReference.cs EncryptedData.cs
318         * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
319         * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
320                 New classes added for Xml Encryption in 1.2
321         * KeyInfoRetrievalMethod.cs:
322                 Added Type attribute for 1.2
323         * XmlSignature.cs:
324                 Added string constants for algorithm namespaces
325
326 2004-01-11  Sebastien Pouliot  <spouliot@videotron.ca>
327
328         * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to 
329         Resolver property.
330         * Transform.cs: Fixed class signature (for 1.1+) by adding public to 
331         Resolver property.
332
333 2003-12-14  Sebastien Pouliot  <spouliot@videotron.ca>
334
335         * SignedXml.cs: Now load the public key when verifying (bug #52084)
336         and can find an element by it's Id when Id isn't defined in DTD or XSD.
337
338 2003-07-27  Sebastien Pouliot  <spouliot@videotron.ca>
339
340         * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
341
342 2003-07-24  Sebastien Pouliot  <spouliot@videotron.ca>
343
344         * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
345         from Aleksey Sanin.
346
347 2003-06-19  Nick Drochak <ndrochak@gol.com>
348
349         * DSAKeyValue.cs:
350         * RSAKeyValue.cs: Work around for mcs? bug 45127.
351
352 2003-06-11  Sebastien Pouliot <spouliot@motus.com>
353
354         * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
355         * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
356
357 2003-05-25  Sebastien Pouliot  <spouliot@videotron.ca>
358
359         * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
360         to match framework 1.1 (this was a bug in framework 1.0).
361
362 2003-05-10  Sebastien Pouliot  <spouliot@videotron.ca>
363
364         * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
365         documentation (no public declaration).
366         * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
367         documentation (no public declaration).
368
369 2003-03-03  Sebastien Pouliot  <spouliot@videotron.ca>
370
371         * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
372         XML generation).
373         * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
374         XML generation).
375         * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
376
377 2003-03-02  Sebastien Pouliot  <spouliot@videotron.ca>
378
379         * DSAKeyValue.cs: New XML generation is commented. Old string technique
380         did a better job to match MS implementation.
381         * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
382         * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
383         * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
384         * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
385         * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
386         * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
387         * RSAKeyValue.cs: New XML generation is commented. Old string technique
388         did a better job to match MS implementation.
389         * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
390         * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
391         * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
392         * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
393         * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
394         * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
395         * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
396         * XmlSignature.cs: New. Private contants (construct similar to WSE).
397
398 2003-02-19  Sebastien Pouliot  <spouliot@videotron.ca>
399
400         * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
401         will reflect reality).
402
403 2003-01-17  Sebastien Pouliot  <spouliot@videotron.ca>
404
405         * KeyInfo.cs: Changed some protected declaration to private.
406         * KeyInfoName.cs: Changed some protected declaration to private.
407         * KeyInfoNode.cs: Changed some protected declaration to private.
408         * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
409         * KeyInfoX509Data.cs: Changed some protected declaration to private.
410         * Transform.cs: Changed some protected declaration to private.
411         * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
412         * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
413         * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
414         * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
415         * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
416         * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
417
418 2002-11-28  Sebastien Pouliot  <spouliot@videotron.ca>
419
420         * TODOAttribute.cs: New. Still much to do ;-)
421         * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
422         functionnal.
423         * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
424         functionnal.
425
426 2002-11-20  Sebastien Pouliot  <spouliot@videotron.ca>
427
428         * DataObject.cs: New. Complete implementation.
429         * DSAKeyValue.cs: New. Complete implementation.
430         * KeyInfo.cs: New. Complete implementation.
431         * KeyInfoClause.cs: New. Abstract class (complete).
432         * KeyInfoName.cs: New. Complete implementation.
433         * KeyInfoNode.cs: New. Complete implementation.
434         * KeyInfoRetrievalMethod.cs: New. Complete implementation.
435         * KeyInfoX509Data.cs: New. Complete implementation.
436         * Reference.cs: New. Incomplete implementation.
437         * RSAKeyValue.cs: New. Complete implementation.
438         * Signature.cs: New. Almost complete implementation - returned
439         XML isn't exactly like the MS implementation.
440         * SignedInfo.cs: New. Complete except SignatureLength.
441         * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
442         Still many TODO!
443         * Transform.cs: New. Abstract class (complete).
444         * TransformChain.cs: New. Complete implementation.
445         * XmlDsigBase64Transform.cs: New. Stub + basic logic.
446         * XmlDsigC14NTransform.cs: New. Stub + basic logic.
447         * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
448         * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
449         * XmlDsigXPathTransform.cs: New. Stub + basic logic.
450         * XmlDsigXsltTransform.cs: New. Stub + basic logic.