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