1 2005-04-24 Sebastien Pouliot <sebastien@ximian.com>
3 * SignedInfo.cs: Added [ComVisible (false)] to new property.
4 * SignedXml.cs: Added [ComVisible (false)] to new properties and
6 * ReferenceList.cs: Fixed members signatures for beta2.
7 * Reference.cs: Added [ComVisible (false)] to new set_TransformChain.
8 * EncryptedType.cs: Fix compilation with EncryptionPropertyCollection
10 * DataObject.cs: Fix compilation warnings.
11 * EncryptedKey.cs: Fix compilation with ReferenceList and
12 EncryptionPropertyCollection changes.
13 * EncryptionProperties.cs: Class has been renamed to
14 EncryptionPropertyCollection.
15 * Transform.cs: Added [ComVisible (false)] to new properties and
17 * EncryptedXml.cs: Changed XmlEncRSA1_5Url to XmlEncRSA15Url.
18 * KeyInfoRetrievalMethod.cs: Added [ComVisible (false)] to Type
20 * KeyInfoX509Data.cs: Added [ComVisible (false)] to AddSubjectKeyId
21 (string) method and implemented it.
22 * EncryptedData.cs: Changed EncryptionProperties to new
23 EncryptionPropertyCollection.
24 * XmlDsigC14NTransform.cs: Added [ComVisible (false)] to
25 GetDigestedOutput method and added a basic implementation.
26 * X509IssuerSerial.cs: IssuerName and SerialNumber are now properties.
28 2005-04-23 Sebastien Pouliot <sebastien@ximian.com>
30 * EncryptedXml.cs, SignedXml.cs: Changed X509CertificateEx to
31 X509Certificate2 to match beta2.
33 2005-04-04 Atsushi Enomoto <atsushi@ximian.com>
35 * XmlSignatureStreamReader.cs : new file. Handles Stream to rip CR off.
36 * XmlDsigXPathTransform.cs,
37 XmlDecryptionTransform.cs,
38 XmlDsigC14NTransform.cs,
39 XmlDsigEnvelopedSignatureTransform.cs,
40 XmlDsigXsltTransform.cs : use XmlSignatureStreamReader for Streams.
42 2004-09-16 Sebastien Pouliot <sebastien@ximian.com>
44 * Signature.cs: Fixed Xmldsig and broken unit tests.
45 * SignedXml.cs: Fixed warning (level 4) for unused variable.
46 * XmlDsigEnvelopedSignatureTransform.cs: Fixed warning (l4) for unused
49 2004-09-04 Tim Coleman <tim@timcoleman.com>
50 * XmlDecryptionTransform.cs:
51 Implement rudimentary xpointer support for Except URIs.
53 2004-09-03 Tim Coleman <tim@timcoleman.com>
54 * EncryptedXml.cs: Add support for RSA for key formatting
55 * Reference.cs: Include XmlDecryptionTransform
57 Set the EncryptedKey on the XmlDecryptionTransform when
59 * XmlDecryptionTransform.cs:
60 Clean up decryption transformation to work without ugly hack.
61 * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
62 Implement this class based on XmlDsigC14N
63 * XmlSignature.cs: Add namespaces for various classes.
64 * KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
65 Remove TODO attributes from implemented methods.
66 * KeyInfoName.cs: Put #if NET_2_0 markers in
67 * Transform.cs: Implement GetDigestedOutput
69 2004-09-02 Tim Coleman <tim@timcoleman.com>
70 * CipherReference.cs: Add XmlDecryptionTransform for 2.0
71 * EncryptedType.cs: Fix type initialization to conform to .NET
73 Add support for RSA key decryption and "cloning" for Transform
74 * KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
77 Create internal GetXml function if we already have a doc
78 * SignedXml.cs: Fix the transformation when we get an XmlDocument out
79 * XmlDecryptionTransform.cs: Implemented Xml Decryption
80 * XmlSignature.cs: Add namespace for Xml Decryption
82 2004-08-31 Tim Coleman <tim@timcoleman.com>
83 * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
85 * SignedXml.cs Transform.cs:
87 * EncryptedXml.cs SymmetricKeyWrap.cs:
88 Get symmetric key wrap to work for AES keys.
90 2004-08-30 Tim Coleman <tim@timcoleman.com>
91 * EncryptedXml.cs: Implement lots of XML Encryption code.
92 * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
93 * XmlSignature.cs: Add NET_2_0 check around EncryptedKey
95 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
97 * KeyInfo.cs : NET_1_1 build fix.
99 2004-08-29 Tim Coleman <tim@timcoleman.com>
100 * EncryptedKey.cs: Fix element name when generating XML.
101 * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
102 * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
103 * KeyInfoName.cs: Add missing constructor
104 * SymmetricKeyWrap.cs: Add untested TripleDES key wrap
105 algorithms for encryption/decryption
106 * XmlSignature.cs: Add EncryptedKey constant.
107 * EncryptedData.cs: Add .NET 2.0 method stubs.
109 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
111 * Signature.cs : Fixed NextElementPos() that incorrectly examined
114 2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
116 * EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
117 XmlEncElementContentUrl.
118 * X509IssuerSerial.cs: Make constructor internal so it doesn't show up
119 in corcompare results for NET_2_0 profile.
121 2004-06-17 Sebastien Pouliot <sebastien@ximian.com>
123 * KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
124 undocumented structure (now documented, and public, in Fx 2.0).
125 * X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
126 internal before that.
128 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
130 * SignedXml.cs: API signature fixes
132 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
134 * SignedXml.cs : Complete fix for bug #59545. Support #xpointer(id()).
135 Namespace fixup is required when signing prefixed xml.
137 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
139 * SignedXml.cs : Fix for bug #59545. Handle #xpointer(/) as document.
141 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
143 * SignedXml.cs : partial fix for bug #59165 that does not output
144 namespace that conflicts with element's namespace.
146 2004-05-13 Sebastien Pouliot <sebastien@ximian.com>
148 * SignedXml.cs: Update TODO informations.
150 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
152 * XmlDsigBase64Transform.cs :
153 LoadInput() should retrieve all the descendants.
154 GetOutput() should handle nodes without digging into child nodes.
156 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
159 Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
160 * XmlDsigBase64Transform.cs : Should not output the content of the
161 selected element nodes. Put text content only those text nodes are
163 * XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
164 * XmlDsigXsltTransform.cs : Use XmlResolver to load document and
165 to transform. Throw null reference exception explicitly when
166 the input was not loaded.
168 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
170 * XmlDsigEnvelopedSignatureTransform.cs, XmlDsigXPathTransform.cs,
171 XmlDsigXsltTransform.cs: Fixed build for net_1_0 profile.
173 2004-03-30 Sebastien Pouliot <sebastien@ximian.com>
175 * Reference.cs: Changed code to use CryptoConfig to create transforms.
176 This is "the" way to do it (e.g. to allow new transforms to be added)
177 but cause problems when using VS.NET for debugging. Old code is still
178 present, but commented, for that cause.
180 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
182 * SignedXml.cs : namespace nodes also should be supplied for enveloped
184 * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
186 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
188 * SignedXml.cs : XPath transformation output is not type of Stream.
189 Fix to support them by canonicalizing it.
191 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
193 * XmlDsigXsltTransform.cs : GetOutput() now just returns
194 transformation output.
196 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
198 * SignedXml.cs : Added xmlns support for Manifest.
200 2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
202 * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
203 This should help us to validate more tests from the Phaos suite.
204 Note: Microsoft doesn't support this and we only support it for
205 verification (not signature generation).
206 * SignedXml.cs: Added support for Manifest, including recursive
207 manifests. Made some changes to reuse existing code as much as
208 possible. Better support for local/remote files - but requires
209 catching an Uri exception for local files :-(.
210 * XmlSignature.cs: Added constants for Manifest element and URI.
212 2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
215 - Use specified (or default) XmlResolver to get external resource,
216 instead of using WebRequest directly. Also modified it easier.
217 - ApplyTransform() : Clone only when it is required. Handle
218 transformation output other than Stream.
219 - Even if applicable key was not found in GetHash(), don't throw
220 crypto exception every time and just return false (MS does it).
221 Throw an exception only when no key was specified as KeyInfo.
222 * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
223 incorrectly set InputTypes internally.
224 * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
225 transform parameter (i.e. <XPath>..</XPath>) should be registered
226 to XsltContext. Otherwise prefix binding error occurs.
227 Just filter attribute node, instead of filtering attribute children.
229 2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
231 * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
232 false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
233 -retrieval-method.xml in the Phaos test suite.
235 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
237 * Reference.cs, Signature.cs : They should keep input element and hence
238 keep namespace context nodes on LoadXml() as same as SignedInfo.
239 * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
240 namespace nodes into the input document (unlike other classes, there
241 seems no other way to keep ns-nodes here).
242 Now some of W3C phaos xmldsig test passes.
244 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
246 * SignedInfo.cs : It holds input element and directly returns it
247 unless the properties are not set.
248 Throw CryptographicException when Reference is empty *and* GetXml()
249 is *created*. (when just returning input element, no exception is
252 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
254 * DataObject.cs : It now holds element instead of each parameters.
255 Avoid loading element content to different document unless its
256 properties were modified (to keep namespace node context).
258 2004-03-20 Sebastien Pouliot <sebastien@ximian.com>
260 * SignedXml.cs: Removed unused (and commented) ComputeHash method.
262 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
264 * XmlDsigXPathTransform.cs : just found stupid bug.
266 2004-03-19 Sebastien Pouliot <sebastien@ximian.com>
268 * SignedXml.cs: Lot of small changes to complete TODOs and to match
271 2004-03-17 Sebastien Pouliot <sebastien@ximian.com>
273 * SignedXml.cs: The old method was working for creating signature -
274 so it was reintroduced for (only) this case.
276 2004-03-17 Atsushi Enomoto <atsushi@ximian.com>
278 * SignedXml.cs : the result from enveloped signature transform should
279 be canonicalized before getting its hash.
280 * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
281 if the node is Signature itself it is not allowed.
282 PreserveWhitespace is required.
284 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
286 * SignedXml.cs: Changed (again). This time we use the Stream when
287 loading the document. We now pass 14 out of 15 of the Merlin's
288 tests (including one that MS fails). The only failing test is the
289 one that use the EnvelopedTransform (unfinished).
291 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
293 * SignedXml.cs: Commented my last changes to SignedXml as it made other
294 unis tests fail (in the c14n-izer).
296 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
298 * XmlDsigNodeList.cs : removed BOM from code file.
300 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
302 * XmlDsigNodeList.cs : added.
303 * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
304 * XmlDsigEnvelopedSignatureTransform.cs :
305 Implemented GetOutput(). However, it is totally MS behavior
306 dependent and not based on the spec (we can reimplement it based on
307 improved XmlDsigXPathTransform).
308 * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
310 2004-03-15 Sebastien Pouliot <sebastien@ximian.com>
312 * SignedXml.cs: Now use the original Signature element before applying
313 the C14N transformation. Added a check for null in LoadXml.
315 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
317 * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
318 internal XPath context classes).
320 2004-03-13 Atsushi Enomoto <atsushi@ximian.com>
322 * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
323 and LoadInput() should just load transformed document.
324 Transformation should be done in GetOutput() because either of the
325 stylesheet or input can be loaded in prior. Adjusted code format.
327 2004-03-12 Sebastien Pouliot <sebastien@ximian.com>
329 * Signature.cs: KeyInfo isn't required in schema.
330 * SignedInfo.cs: Added support for missing HMACOutputLength.
331 * SignedXml.cs: Added support to download a reference (experimental).
332 Now throw exception for unknown hash algorithm or canonicalization
333 methods. Changed GetPublicKey to iterate all available keys (not just
336 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
338 * KeyInfo.cs : Attribute Id was not handlded.
339 * KeyInfoX509Data.cs : all array members return null when there are
340 no such contents. Just find child elements, not descendants.
341 * SignedXml.cs : key is not always required when CheckSignature() is
343 * XmlDsigXsltTransform.cs : LoadInput should allow node list.
344 * XmlSignature.cs : added GetChildElements().
346 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
348 * KeyInfoX509Data.cs : trivial local var name fix.
350 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
352 * KeyInfoX509Data.cs,
355 XmlSignature.cs : GetElementsByTagName() should be eliminated or
356 at least should use namespace URI.
358 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
361 Fixed LoadXml() to skip text nodes as MS.NET does.
362 Uncommented out RSAKeyValue.
363 * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
364 that incorrectly acquires descendants. Throw CryptographicException
365 if required elements were not found.
366 * Transform.cs : added internal GetResolver().
367 * XmlDsigXPathTransform.cs,
368 XmlDsigXsltTransform.cs : use XmlResolver.
370 2004-02-19 Tim Coleman <tim@timcoleman.com>
371 * SymmetricKeyWrap.cs:
374 Add calls to SymmetricKeyWrap
376 2004-02-11 Sebastien Pouliot <sebastien@ximian.com>
378 * Reference.cs: Added LoadInnerXml to transforms. Removed unused
380 * Transform.cs: Import GetInnerXml in GetXml.
381 * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
383 * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
384 * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
385 expression and LoadInput. It nows match MS implementation but doesn't
386 work like I think it should (but neither is MS implementation).
388 2004-02-10 Tim Coleman <tim@timcoleman.com>
389 * DataReference.cs EncryptedKey.cs EncryptedXml.cs
390 * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
391 * X509IssuerSerial.cs XmlDecryptionTransform.cs:
392 Add new classes for Xml Encryption in 1.2
393 * CipherData.cs CipherReference.cs EncryptedData.cs
394 * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
395 Change NamespaceURI reference to EncryptedXml class.
396 Make compliant with 1.2
398 Add new entity names.
401 2004-02-07 Tim Coleman <tim@timcoleman.com>
402 * CipherData.cs CipherReference.cs EncryptedData.cs
403 * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
404 * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
405 New classes added for Xml Encryption in 1.2
406 * KeyInfoRetrievalMethod.cs:
407 Added Type attribute for 1.2
409 Added string constants for algorithm namespaces
411 2004-01-11 Sebastien Pouliot <spouliot@videotron.ca>
413 * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
415 * Transform.cs: Fixed class signature (for 1.1+) by adding public to
418 2003-12-14 Sebastien Pouliot <spouliot@videotron.ca>
420 * SignedXml.cs: Now load the public key when verifying (bug #52084)
421 and can find an element by it's Id when Id isn't defined in DTD or XSD.
423 2003-07-27 Sebastien Pouliot <spouliot@videotron.ca>
425 * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
427 2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
429 * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
432 2003-06-19 Nick Drochak <ndrochak@gol.com>
435 * RSAKeyValue.cs: Work around for mcs? bug 45127.
437 2003-06-11 Sebastien Pouliot <spouliot@motus.com>
439 * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
440 * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
442 2003-05-25 Sebastien Pouliot <spouliot@videotron.ca>
444 * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
445 to match framework 1.1 (this was a bug in framework 1.0).
447 2003-05-10 Sebastien Pouliot <spouliot@videotron.ca>
449 * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
450 documentation (no public declaration).
451 * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
452 documentation (no public declaration).
454 2003-03-03 Sebastien Pouliot <spouliot@videotron.ca>
456 * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
458 * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
460 * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
462 2003-03-02 Sebastien Pouliot <spouliot@videotron.ca>
464 * DSAKeyValue.cs: New XML generation is commented. Old string technique
465 did a better job to match MS implementation.
466 * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
467 * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
468 * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
469 * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
470 * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
471 * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
472 * RSAKeyValue.cs: New XML generation is commented. Old string technique
473 did a better job to match MS implementation.
474 * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
475 * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
476 * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
477 * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
478 * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
479 * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
480 * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
481 * XmlSignature.cs: New. Private contants (construct similar to WSE).
483 2003-02-19 Sebastien Pouliot <spouliot@videotron.ca>
485 * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
486 will reflect reality).
488 2003-01-17 Sebastien Pouliot <spouliot@videotron.ca>
490 * KeyInfo.cs: Changed some protected declaration to private.
491 * KeyInfoName.cs: Changed some protected declaration to private.
492 * KeyInfoNode.cs: Changed some protected declaration to private.
493 * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
494 * KeyInfoX509Data.cs: Changed some protected declaration to private.
495 * Transform.cs: Changed some protected declaration to private.
496 * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
497 * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
498 * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
499 * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
500 * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
501 * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
503 2002-11-28 Sebastien Pouliot <spouliot@videotron.ca>
505 * TODOAttribute.cs: New. Still much to do ;-)
506 * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
508 * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
511 2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
513 * DataObject.cs: New. Complete implementation.
514 * DSAKeyValue.cs: New. Complete implementation.
515 * KeyInfo.cs: New. Complete implementation.
516 * KeyInfoClause.cs: New. Abstract class (complete).
517 * KeyInfoName.cs: New. Complete implementation.
518 * KeyInfoNode.cs: New. Complete implementation.
519 * KeyInfoRetrievalMethod.cs: New. Complete implementation.
520 * KeyInfoX509Data.cs: New. Complete implementation.
521 * Reference.cs: New. Incomplete implementation.
522 * RSAKeyValue.cs: New. Complete implementation.
523 * Signature.cs: New. Almost complete implementation - returned
524 XML isn't exactly like the MS implementation.
525 * SignedInfo.cs: New. Complete except SignatureLength.
526 * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
528 * Transform.cs: New. Abstract class (complete).
529 * TransformChain.cs: New. Complete implementation.
530 * XmlDsigBase64Transform.cs: New. Stub + basic logic.
531 * XmlDsigC14NTransform.cs: New. Stub + basic logic.
532 * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
533 * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
534 * XmlDsigXPathTransform.cs: New. Stub + basic logic.
535 * XmlDsigXsltTransform.cs: New. Stub + basic logic.