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