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