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