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