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