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