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