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