1 2005-04-23 Sebastien Pouliot <sebastien@ximian.com>
3 * EncryptedXml.cs, SignedXml.cs: Changed X509CertificateEx to
4 X509Certificate2 to match beta2.
6 2005-04-04 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlSignatureStreamReader.cs : new file. Handles Stream to rip CR off.
9 * XmlDsigXPathTransform.cs,
10 XmlDecryptionTransform.cs,
11 XmlDsigC14NTransform.cs,
12 XmlDsigEnvelopedSignatureTransform.cs,
13 XmlDsigXsltTransform.cs : use XmlSignatureStreamReader for Streams.
15 2004-09-16 Sebastien Pouliot <sebastien@ximian.com>
17 * Signature.cs: Fixed Xmldsig and broken unit tests.
18 * SignedXml.cs: Fixed warning (level 4) for unused variable.
19 * XmlDsigEnvelopedSignatureTransform.cs: Fixed warning (l4) for unused
22 2004-09-04 Tim Coleman <tim@timcoleman.com>
23 * XmlDecryptionTransform.cs:
24 Implement rudimentary xpointer support for Except URIs.
26 2004-09-03 Tim Coleman <tim@timcoleman.com>
27 * EncryptedXml.cs: Add support for RSA for key formatting
28 * Reference.cs: Include XmlDecryptionTransform
30 Set the EncryptedKey on the XmlDecryptionTransform when
32 * XmlDecryptionTransform.cs:
33 Clean up decryption transformation to work without ugly hack.
34 * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
35 Implement this class based on XmlDsigC14N
36 * XmlSignature.cs: Add namespaces for various classes.
37 * KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
38 Remove TODO attributes from implemented methods.
39 * KeyInfoName.cs: Put #if NET_2_0 markers in
40 * Transform.cs: Implement GetDigestedOutput
42 2004-09-02 Tim Coleman <tim@timcoleman.com>
43 * CipherReference.cs: Add XmlDecryptionTransform for 2.0
44 * EncryptedType.cs: Fix type initialization to conform to .NET
46 Add support for RSA key decryption and "cloning" for Transform
47 * KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
50 Create internal GetXml function if we already have a doc
51 * SignedXml.cs: Fix the transformation when we get an XmlDocument out
52 * XmlDecryptionTransform.cs: Implemented Xml Decryption
53 * XmlSignature.cs: Add namespace for Xml Decryption
55 2004-08-31 Tim Coleman <tim@timcoleman.com>
56 * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
58 * SignedXml.cs Transform.cs:
60 * EncryptedXml.cs SymmetricKeyWrap.cs:
61 Get symmetric key wrap to work for AES keys.
63 2004-08-30 Tim Coleman <tim@timcoleman.com>
64 * EncryptedXml.cs: Implement lots of XML Encryption code.
65 * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
66 * XmlSignature.cs: Add NET_2_0 check around EncryptedKey
68 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
70 * KeyInfo.cs : NET_1_1 build fix.
72 2004-08-29 Tim Coleman <tim@timcoleman.com>
73 * EncryptedKey.cs: Fix element name when generating XML.
74 * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
75 * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
76 * KeyInfoName.cs: Add missing constructor
77 * SymmetricKeyWrap.cs: Add untested TripleDES key wrap
78 algorithms for encryption/decryption
79 * XmlSignature.cs: Add EncryptedKey constant.
80 * EncryptedData.cs: Add .NET 2.0 method stubs.
82 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
84 * Signature.cs : Fixed NextElementPos() that incorrectly examined
87 2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
89 * EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
90 XmlEncElementContentUrl.
91 * X509IssuerSerial.cs: Make constructor internal so it doesn't show up
92 in corcompare results for NET_2_0 profile.
94 2004-06-17 Sebastien Pouliot <sebastien@ximian.com>
96 * KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
97 undocumented structure (now documented, and public, in Fx 2.0).
98 * X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
101 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
103 * SignedXml.cs: API signature fixes
105 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
107 * SignedXml.cs : Complete fix for bug #59545. Support #xpointer(id()).
108 Namespace fixup is required when signing prefixed xml.
110 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
112 * SignedXml.cs : Fix for bug #59545. Handle #xpointer(/) as document.
114 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
116 * SignedXml.cs : partial fix for bug #59165 that does not output
117 namespace that conflicts with element's namespace.
119 2004-05-13 Sebastien Pouliot <sebastien@ximian.com>
121 * SignedXml.cs: Update TODO informations.
123 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
125 * XmlDsigBase64Transform.cs :
126 LoadInput() should retrieve all the descendants.
127 GetOutput() should handle nodes without digging into child nodes.
129 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
132 Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
133 * XmlDsigBase64Transform.cs : Should not output the content of the
134 selected element nodes. Put text content only those text nodes are
136 * XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
137 * XmlDsigXsltTransform.cs : Use XmlResolver to load document and
138 to transform. Throw null reference exception explicitly when
139 the input was not loaded.
141 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
143 * XmlDsigEnvelopedSignatureTransform.cs, XmlDsigXPathTransform.cs,
144 XmlDsigXsltTransform.cs: Fixed build for net_1_0 profile.
146 2004-03-30 Sebastien Pouliot <sebastien@ximian.com>
148 * Reference.cs: Changed code to use CryptoConfig to create transforms.
149 This is "the" way to do it (e.g. to allow new transforms to be added)
150 but cause problems when using VS.NET for debugging. Old code is still
151 present, but commented, for that cause.
153 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
155 * SignedXml.cs : namespace nodes also should be supplied for enveloped
157 * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
159 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
161 * SignedXml.cs : XPath transformation output is not type of Stream.
162 Fix to support them by canonicalizing it.
164 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
166 * XmlDsigXsltTransform.cs : GetOutput() now just returns
167 transformation output.
169 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
171 * SignedXml.cs : Added xmlns support for Manifest.
173 2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
175 * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
176 This should help us to validate more tests from the Phaos suite.
177 Note: Microsoft doesn't support this and we only support it for
178 verification (not signature generation).
179 * SignedXml.cs: Added support for Manifest, including recursive
180 manifests. Made some changes to reuse existing code as much as
181 possible. Better support for local/remote files - but requires
182 catching an Uri exception for local files :-(.
183 * XmlSignature.cs: Added constants for Manifest element and URI.
185 2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
188 - Use specified (or default) XmlResolver to get external resource,
189 instead of using WebRequest directly. Also modified it easier.
190 - ApplyTransform() : Clone only when it is required. Handle
191 transformation output other than Stream.
192 - Even if applicable key was not found in GetHash(), don't throw
193 crypto exception every time and just return false (MS does it).
194 Throw an exception only when no key was specified as KeyInfo.
195 * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
196 incorrectly set InputTypes internally.
197 * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
198 transform parameter (i.e. <XPath>..</XPath>) should be registered
199 to XsltContext. Otherwise prefix binding error occurs.
200 Just filter attribute node, instead of filtering attribute children.
202 2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
204 * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
205 false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
206 -retrieval-method.xml in the Phaos test suite.
208 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
210 * Reference.cs, Signature.cs : They should keep input element and hence
211 keep namespace context nodes on LoadXml() as same as SignedInfo.
212 * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
213 namespace nodes into the input document (unlike other classes, there
214 seems no other way to keep ns-nodes here).
215 Now some of W3C phaos xmldsig test passes.
217 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
219 * SignedInfo.cs : It holds input element and directly returns it
220 unless the properties are not set.
221 Throw CryptographicException when Reference is empty *and* GetXml()
222 is *created*. (when just returning input element, no exception is
225 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
227 * DataObject.cs : It now holds element instead of each parameters.
228 Avoid loading element content to different document unless its
229 properties were modified (to keep namespace node context).
231 2004-03-20 Sebastien Pouliot <sebastien@ximian.com>
233 * SignedXml.cs: Removed unused (and commented) ComputeHash method.
235 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
237 * XmlDsigXPathTransform.cs : just found stupid bug.
239 2004-03-19 Sebastien Pouliot <sebastien@ximian.com>
241 * SignedXml.cs: Lot of small changes to complete TODOs and to match
244 2004-03-17 Sebastien Pouliot <sebastien@ximian.com>
246 * SignedXml.cs: The old method was working for creating signature -
247 so it was reintroduced for (only) this case.
249 2004-03-17 Atsushi Enomoto <atsushi@ximian.com>
251 * SignedXml.cs : the result from enveloped signature transform should
252 be canonicalized before getting its hash.
253 * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
254 if the node is Signature itself it is not allowed.
255 PreserveWhitespace is required.
257 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
259 * SignedXml.cs: Changed (again). This time we use the Stream when
260 loading the document. We now pass 14 out of 15 of the Merlin's
261 tests (including one that MS fails). The only failing test is the
262 one that use the EnvelopedTransform (unfinished).
264 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
266 * SignedXml.cs: Commented my last changes to SignedXml as it made other
267 unis tests fail (in the c14n-izer).
269 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
271 * XmlDsigNodeList.cs : removed BOM from code file.
273 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
275 * XmlDsigNodeList.cs : added.
276 * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
277 * XmlDsigEnvelopedSignatureTransform.cs :
278 Implemented GetOutput(). However, it is totally MS behavior
279 dependent and not based on the spec (we can reimplement it based on
280 improved XmlDsigXPathTransform).
281 * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
283 2004-03-15 Sebastien Pouliot <sebastien@ximian.com>
285 * SignedXml.cs: Now use the original Signature element before applying
286 the C14N transformation. Added a check for null in LoadXml.
288 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
290 * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
291 internal XPath context classes).
293 2004-03-13 Atsushi Enomoto <atsushi@ximian.com>
295 * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
296 and LoadInput() should just load transformed document.
297 Transformation should be done in GetOutput() because either of the
298 stylesheet or input can be loaded in prior. Adjusted code format.
300 2004-03-12 Sebastien Pouliot <sebastien@ximian.com>
302 * Signature.cs: KeyInfo isn't required in schema.
303 * SignedInfo.cs: Added support for missing HMACOutputLength.
304 * SignedXml.cs: Added support to download a reference (experimental).
305 Now throw exception for unknown hash algorithm or canonicalization
306 methods. Changed GetPublicKey to iterate all available keys (not just
309 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
311 * KeyInfo.cs : Attribute Id was not handlded.
312 * KeyInfoX509Data.cs : all array members return null when there are
313 no such contents. Just find child elements, not descendants.
314 * SignedXml.cs : key is not always required when CheckSignature() is
316 * XmlDsigXsltTransform.cs : LoadInput should allow node list.
317 * XmlSignature.cs : added GetChildElements().
319 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
321 * KeyInfoX509Data.cs : trivial local var name fix.
323 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
325 * KeyInfoX509Data.cs,
328 XmlSignature.cs : GetElementsByTagName() should be eliminated or
329 at least should use namespace URI.
331 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
334 Fixed LoadXml() to skip text nodes as MS.NET does.
335 Uncommented out RSAKeyValue.
336 * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
337 that incorrectly acquires descendants. Throw CryptographicException
338 if required elements were not found.
339 * Transform.cs : added internal GetResolver().
340 * XmlDsigXPathTransform.cs,
341 XmlDsigXsltTransform.cs : use XmlResolver.
343 2004-02-19 Tim Coleman <tim@timcoleman.com>
344 * SymmetricKeyWrap.cs:
347 Add calls to SymmetricKeyWrap
349 2004-02-11 Sebastien Pouliot <sebastien@ximian.com>
351 * Reference.cs: Added LoadInnerXml to transforms. Removed unused
353 * Transform.cs: Import GetInnerXml in GetXml.
354 * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
356 * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
357 * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
358 expression and LoadInput. It nows match MS implementation but doesn't
359 work like I think it should (but neither is MS implementation).
361 2004-02-10 Tim Coleman <tim@timcoleman.com>
362 * DataReference.cs EncryptedKey.cs EncryptedXml.cs
363 * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
364 * X509IssuerSerial.cs XmlDecryptionTransform.cs:
365 Add new classes for Xml Encryption in 1.2
366 * CipherData.cs CipherReference.cs EncryptedData.cs
367 * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
368 Change NamespaceURI reference to EncryptedXml class.
369 Make compliant with 1.2
371 Add new entity names.
374 2004-02-07 Tim Coleman <tim@timcoleman.com>
375 * CipherData.cs CipherReference.cs EncryptedData.cs
376 * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
377 * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
378 New classes added for Xml Encryption in 1.2
379 * KeyInfoRetrievalMethod.cs:
380 Added Type attribute for 1.2
382 Added string constants for algorithm namespaces
384 2004-01-11 Sebastien Pouliot <spouliot@videotron.ca>
386 * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
388 * Transform.cs: Fixed class signature (for 1.1+) by adding public to
391 2003-12-14 Sebastien Pouliot <spouliot@videotron.ca>
393 * SignedXml.cs: Now load the public key when verifying (bug #52084)
394 and can find an element by it's Id when Id isn't defined in DTD or XSD.
396 2003-07-27 Sebastien Pouliot <spouliot@videotron.ca>
398 * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
400 2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
402 * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
405 2003-06-19 Nick Drochak <ndrochak@gol.com>
408 * RSAKeyValue.cs: Work around for mcs? bug 45127.
410 2003-06-11 Sebastien Pouliot <spouliot@motus.com>
412 * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
413 * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
415 2003-05-25 Sebastien Pouliot <spouliot@videotron.ca>
417 * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
418 to match framework 1.1 (this was a bug in framework 1.0).
420 2003-05-10 Sebastien Pouliot <spouliot@videotron.ca>
422 * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
423 documentation (no public declaration).
424 * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
425 documentation (no public declaration).
427 2003-03-03 Sebastien Pouliot <spouliot@videotron.ca>
429 * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
431 * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
433 * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
435 2003-03-02 Sebastien Pouliot <spouliot@videotron.ca>
437 * DSAKeyValue.cs: New XML generation is commented. Old string technique
438 did a better job to match MS implementation.
439 * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
440 * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
441 * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
442 * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
443 * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
444 * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
445 * RSAKeyValue.cs: New XML generation is commented. Old string technique
446 did a better job to match MS implementation.
447 * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
448 * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
449 * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
450 * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
451 * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
452 * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
453 * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
454 * XmlSignature.cs: New. Private contants (construct similar to WSE).
456 2003-02-19 Sebastien Pouliot <spouliot@videotron.ca>
458 * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
459 will reflect reality).
461 2003-01-17 Sebastien Pouliot <spouliot@videotron.ca>
463 * KeyInfo.cs: Changed some protected declaration to private.
464 * KeyInfoName.cs: Changed some protected declaration to private.
465 * KeyInfoNode.cs: Changed some protected declaration to private.
466 * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
467 * KeyInfoX509Data.cs: Changed some protected declaration to private.
468 * Transform.cs: Changed some protected declaration to private.
469 * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
470 * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
471 * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
472 * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
473 * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
474 * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
476 2002-11-28 Sebastien Pouliot <spouliot@videotron.ca>
478 * TODOAttribute.cs: New. Still much to do ;-)
479 * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
481 * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
484 2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
486 * DataObject.cs: New. Complete implementation.
487 * DSAKeyValue.cs: New. Complete implementation.
488 * KeyInfo.cs: New. Complete implementation.
489 * KeyInfoClause.cs: New. Abstract class (complete).
490 * KeyInfoName.cs: New. Complete implementation.
491 * KeyInfoNode.cs: New. Complete implementation.
492 * KeyInfoRetrievalMethod.cs: New. Complete implementation.
493 * KeyInfoX509Data.cs: New. Complete implementation.
494 * Reference.cs: New. Incomplete implementation.
495 * RSAKeyValue.cs: New. Complete implementation.
496 * Signature.cs: New. Almost complete implementation - returned
497 XML isn't exactly like the MS implementation.
498 * SignedInfo.cs: New. Complete except SignatureLength.
499 * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
501 * Transform.cs: New. Abstract class (complete).
502 * TransformChain.cs: New. Complete implementation.
503 * XmlDsigBase64Transform.cs: New. Stub + basic logic.
504 * XmlDsigC14NTransform.cs: New. Stub + basic logic.
505 * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
506 * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
507 * XmlDsigXPathTransform.cs: New. Stub + basic logic.
508 * XmlDsigXsltTransform.cs: New. Stub + basic logic.