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