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