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