1 2004-09-03 Tim Colmean <tim@timcoleman.com>
2 * EncryptedXml.cs: Add support for RSA for key formatting
3 * Reference.cs: Include XmlDecryptionTransform
5 Set the EncryptedKey on the XmlDecryptionTransform when
7 * XmlDecryptionTransform.cs:
8 Clean up decryption transformation to work without ugly hack.
9 * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
10 Implement this class based on XmlDsigC14N
11 * XmlSignature.cs: Add namespaces for various classes.
12 * KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
13 Remove TODO attributes from implemented methods.
14 * KeyInfoName.cs: Put #if NET_2_0 markers in
15 * Transform.cs: Implement GetDigestedOutput
17 2004-09-02 Tim Coleman <tim@timcoleman.com>
18 * CipherReference.cs: Add XmlDecryptionTransform for 2.0
19 * EncryptedType.cs: Fix type initialization to conform to .NET
21 Add support for RSA key decryption and "cloning" for Transform
22 * KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
25 Create internal GetXml function if we already have a doc
26 * SignedXml.cs: Fix the transformation when we get an XmlDocument out
27 * XmlDecryptionTransform.cs: Implemented Xml Decryption
28 * XmlSignature.cs: Add namespace for Xml Decryption
30 2004-08-31 Tim Coleman <tim@timcoleman.com>
31 * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
33 * SignedXml.cs Transform.cs:
35 * EncryptedXml.cs SymmetricKeyWrap.cs:
36 Get symmetric key wrap to work for AES keys.
38 2004-08-30 Tim Coleman <tim@timcoleman.com>
39 * EncryptedXml.cs: Implement lots of XML Encryption code.
40 * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
41 * XmlSignature.cs: Add NET_2_0 check around EncryptedKey
43 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
45 * KeyInfo.cs : NET_1_1 build fix.
47 2004-08-29 Tim Coleman <tim@timcoleman.com>
48 * EncryptedKey.cs: Fix element name when generating XML.
49 * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
50 * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
51 * KeyInfoName.cs: Add missing constructor
52 * SymmetricKeyWrap.cs: Add untested TripleDES key wrap
53 algorithms for encryption/decryption
54 * XmlSignature.cs: Add EncryptedKey constant.
55 * EncryptedData.cs: Add .NET 2.0 method stubs.
57 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
59 * Signature.cs : Fixed NextElementPos() that incorrectly examined
62 2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
64 * EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
65 XmlEncElementContentUrl.
66 * X509IssuerSerial.cs: Make constructor internal so it doesn't show up
67 in corcompare results for NET_2_0 profile.
69 2004-06-17 Sebastien Pouliot <sebastien@ximian.com>
71 * KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
72 undocumented structure (now documented, and public, in Fx 2.0).
73 * X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
76 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
78 * SignedXml.cs: API signature fixes
80 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
82 * SignedXml.cs : Complete fix for bug #59545. Support #xpointer(id()).
83 Namespace fixup is required when signing prefixed xml.
85 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
87 * SignedXml.cs : Fix for bug #59545. Handle #xpointer(/) as document.
89 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
91 * SignedXml.cs : partial fix for bug #59165 that does not output
92 namespace that conflicts with element's namespace.
94 2004-05-13 Sebastien Pouliot <sebastien@ximian.com>
96 * SignedXml.cs: Update TODO informations.
98 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
100 * XmlDsigBase64Transform.cs :
101 LoadInput() should retrieve all the descendants.
102 GetOutput() should handle nodes without digging into child nodes.
104 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
107 Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
108 * XmlDsigBase64Transform.cs : Should not output the content of the
109 selected element nodes. Put text content only those text nodes are
111 * XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
112 * XmlDsigXsltTransform.cs : Use XmlResolver to load document and
113 to transform. Throw null reference exception explicitly when
114 the input was not loaded.
116 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
118 * XmlDsigEnvelopedSignatureTransform.cs, XmlDsigXPathTransform.cs,
119 XmlDsigXsltTransform.cs: Fixed build for net_1_0 profile.
121 2004-03-30 Sebastien Pouliot <sebastien@ximian.com>
123 * Reference.cs: Changed code to use CryptoConfig to create transforms.
124 This is "the" way to do it (e.g. to allow new transforms to be added)
125 but cause problems when using VS.NET for debugging. Old code is still
126 present, but commented, for that cause.
128 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
130 * SignedXml.cs : namespace nodes also should be supplied for enveloped
132 * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
134 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
136 * SignedXml.cs : XPath transformation output is not type of Stream.
137 Fix to support them by canonicalizing it.
139 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
141 * XmlDsigXsltTransform.cs : GetOutput() now just returns
142 transformation output.
144 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
146 * SignedXml.cs : Added xmlns support for Manifest.
148 2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
150 * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
151 This should help us to validate more tests from the Phaos suite.
152 Note: Microsoft doesn't support this and we only support it for
153 verification (not signature generation).
154 * SignedXml.cs: Added support for Manifest, including recursive
155 manifests. Made some changes to reuse existing code as much as
156 possible. Better support for local/remote files - but requires
157 catching an Uri exception for local files :-(.
158 * XmlSignature.cs: Added constants for Manifest element and URI.
160 2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
163 - Use specified (or default) XmlResolver to get external resource,
164 instead of using WebRequest directly. Also modified it easier.
165 - ApplyTransform() : Clone only when it is required. Handle
166 transformation output other than Stream.
167 - Even if applicable key was not found in GetHash(), don't throw
168 crypto exception every time and just return false (MS does it).
169 Throw an exception only when no key was specified as KeyInfo.
170 * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
171 incorrectly set InputTypes internally.
172 * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
173 transform parameter (i.e. <XPath>..</XPath>) should be registered
174 to XsltContext. Otherwise prefix binding error occurs.
175 Just filter attribute node, instead of filtering attribute children.
177 2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
179 * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
180 false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
181 -retrieval-method.xml in the Phaos test suite.
183 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
185 * Reference.cs, Signature.cs : They should keep input element and hence
186 keep namespace context nodes on LoadXml() as same as SignedInfo.
187 * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
188 namespace nodes into the input document (unlike other classes, there
189 seems no other way to keep ns-nodes here).
190 Now some of W3C phaos xmldsig test passes.
192 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
194 * SignedInfo.cs : It holds input element and directly returns it
195 unless the properties are not set.
196 Throw CryptographicException when Reference is empty *and* GetXml()
197 is *created*. (when just returning input element, no exception is
200 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
202 * DataObject.cs : It now holds element instead of each parameters.
203 Avoid loading element content to different document unless its
204 properties were modified (to keep namespace node context).
206 2004-03-20 Sebastien Pouliot <sebastien@ximian.com>
208 * SignedXml.cs: Removed unused (and commented) ComputeHash method.
210 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
212 * XmlDsigXPathTransform.cs : just found stupid bug.
214 2004-03-19 Sebastien Pouliot <sebastien@ximian.com>
216 * SignedXml.cs: Lot of small changes to complete TODOs and to match
219 2004-03-17 Sebastien Pouliot <sebastien@ximian.com>
221 * SignedXml.cs: The old method was working for creating signature -
222 so it was reintroduced for (only) this case.
224 2004-03-17 Atsushi Enomoto <atsushi@ximian.com>
226 * SignedXml.cs : the result from enveloped signature transform should
227 be canonicalized before getting its hash.
228 * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
229 if the node is Signature itself it is not allowed.
230 PreserveWhitespace is required.
232 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
234 * SignedXml.cs: Changed (again). This time we use the Stream when
235 loading the document. We now pass 14 out of 15 of the Merlin's
236 tests (including one that MS fails). The only failing test is the
237 one that use the EnvelopedTransform (unfinished).
239 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
241 * SignedXml.cs: Commented my last changes to SignedXml as it made other
242 unis tests fail (in the c14n-izer).
244 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
246 * XmlDsigNodeList.cs : removed BOM from code file.
248 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
250 * XmlDsigNodeList.cs : added.
251 * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
252 * XmlDsigEnvelopedSignatureTransform.cs :
253 Implemented GetOutput(). However, it is totally MS behavior
254 dependent and not based on the spec (we can reimplement it based on
255 improved XmlDsigXPathTransform).
256 * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
258 2004-03-15 Sebastien Pouliot <sebastien@ximian.com>
260 * SignedXml.cs: Now use the original Signature element before applying
261 the C14N transformation. Added a check for null in LoadXml.
263 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
265 * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
266 internal XPath context classes).
268 2004-03-13 Atsushi Enomoto <atsushi@ximian.com>
270 * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
271 and LoadInput() should just load transformed document.
272 Transformation should be done in GetOutput() because either of the
273 stylesheet or input can be loaded in prior. Adjusted code format.
275 2004-03-12 Sebastien Pouliot <sebastien@ximian.com>
277 * Signature.cs: KeyInfo isn't required in schema.
278 * SignedInfo.cs: Added support for missing HMACOutputLength.
279 * SignedXml.cs: Added support to download a reference (experimental).
280 Now throw exception for unknown hash algorithm or canonicalization
281 methods. Changed GetPublicKey to iterate all available keys (not just
284 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
286 * KeyInfo.cs : Attribute Id was not handlded.
287 * KeyInfoX509Data.cs : all array members return null when there are
288 no such contents. Just find child elements, not descendants.
289 * SignedXml.cs : key is not always required when CheckSignature() is
291 * XmlDsigXsltTransform.cs : LoadInput should allow node list.
292 * XmlSignature.cs : added GetChildElements().
294 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
296 * KeyInfoX509Data.cs : trivial local var name fix.
298 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
300 * KeyInfoX509Data.cs,
303 XmlSignature.cs : GetElementsByTagName() should be eliminated or
304 at least should use namespace URI.
306 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
309 Fixed LoadXml() to skip text nodes as MS.NET does.
310 Uncommented out RSAKeyValue.
311 * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
312 that incorrectly acquires descendants. Throw CryptographicException
313 if required elements were not found.
314 * Transform.cs : added internal GetResolver().
315 * XmlDsigXPathTransform.cs,
316 XmlDsigXsltTransform.cs : use XmlResolver.
318 2004-02-19 Tim Coleman <tim@timcoleman.com>
319 * SymmetricKeyWrap.cs:
322 Add calls to SymmetricKeyWrap
324 2004-02-11 Sebastien Pouliot <sebastien@ximian.com>
326 * Reference.cs: Added LoadInnerXml to transforms. Removed unused
328 * Transform.cs: Import GetInnerXml in GetXml.
329 * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
331 * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
332 * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
333 expression and LoadInput. It nows match MS implementation but doesn't
334 work like I think it should (but neither is MS implementation).
336 2004-02-10 Tim Coleman <tim@timcoleman.com>
337 * DataReference.cs EncryptedKey.cs EncryptedXml.cs
338 * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
339 * X509IssuerSerial.cs XmlDecryptionTransform.cs:
340 Add new classes for Xml Encryption in 1.2
341 * CipherData.cs CipherReference.cs EncryptedData.cs
342 * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
343 Change NamespaceURI reference to EncryptedXml class.
344 Make compliant with 1.2
346 Add new entity names.
349 2004-02-07 Tim Coleman <tim@timcoleman.com>
350 * CipherData.cs CipherReference.cs EncryptedData.cs
351 * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
352 * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
353 New classes added for Xml Encryption in 1.2
354 * KeyInfoRetrievalMethod.cs:
355 Added Type attribute for 1.2
357 Added string constants for algorithm namespaces
359 2004-01-11 Sebastien Pouliot <spouliot@videotron.ca>
361 * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
363 * Transform.cs: Fixed class signature (for 1.1+) by adding public to
366 2003-12-14 Sebastien Pouliot <spouliot@videotron.ca>
368 * SignedXml.cs: Now load the public key when verifying (bug #52084)
369 and can find an element by it's Id when Id isn't defined in DTD or XSD.
371 2003-07-27 Sebastien Pouliot <spouliot@videotron.ca>
373 * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
375 2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
377 * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
380 2003-06-19 Nick Drochak <ndrochak@gol.com>
383 * RSAKeyValue.cs: Work around for mcs? bug 45127.
385 2003-06-11 Sebastien Pouliot <spouliot@motus.com>
387 * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
388 * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
390 2003-05-25 Sebastien Pouliot <spouliot@videotron.ca>
392 * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
393 to match framework 1.1 (this was a bug in framework 1.0).
395 2003-05-10 Sebastien Pouliot <spouliot@videotron.ca>
397 * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
398 documentation (no public declaration).
399 * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
400 documentation (no public declaration).
402 2003-03-03 Sebastien Pouliot <spouliot@videotron.ca>
404 * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
406 * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
408 * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
410 2003-03-02 Sebastien Pouliot <spouliot@videotron.ca>
412 * DSAKeyValue.cs: New XML generation is commented. Old string technique
413 did a better job to match MS implementation.
414 * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
415 * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
416 * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
417 * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
418 * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
419 * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
420 * RSAKeyValue.cs: New XML generation is commented. Old string technique
421 did a better job to match MS implementation.
422 * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
423 * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
424 * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
425 * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
426 * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
427 * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
428 * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
429 * XmlSignature.cs: New. Private contants (construct similar to WSE).
431 2003-02-19 Sebastien Pouliot <spouliot@videotron.ca>
433 * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
434 will reflect reality).
436 2003-01-17 Sebastien Pouliot <spouliot@videotron.ca>
438 * KeyInfo.cs: Changed some protected declaration to private.
439 * KeyInfoName.cs: Changed some protected declaration to private.
440 * KeyInfoNode.cs: Changed some protected declaration to private.
441 * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
442 * KeyInfoX509Data.cs: Changed some protected declaration to private.
443 * Transform.cs: Changed some protected declaration to private.
444 * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
445 * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
446 * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
447 * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
448 * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
449 * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
451 2002-11-28 Sebastien Pouliot <spouliot@videotron.ca>
453 * TODOAttribute.cs: New. Still much to do ;-)
454 * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
456 * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
459 2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
461 * DataObject.cs: New. Complete implementation.
462 * DSAKeyValue.cs: New. Complete implementation.
463 * KeyInfo.cs: New. Complete implementation.
464 * KeyInfoClause.cs: New. Abstract class (complete).
465 * KeyInfoName.cs: New. Complete implementation.
466 * KeyInfoNode.cs: New. Complete implementation.
467 * KeyInfoRetrievalMethod.cs: New. Complete implementation.
468 * KeyInfoX509Data.cs: New. Complete implementation.
469 * Reference.cs: New. Incomplete implementation.
470 * RSAKeyValue.cs: New. Complete implementation.
471 * Signature.cs: New. Almost complete implementation - returned
472 XML isn't exactly like the MS implementation.
473 * SignedInfo.cs: New. Complete except SignatureLength.
474 * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
476 * Transform.cs: New. Abstract class (complete).
477 * TransformChain.cs: New. Complete implementation.
478 * XmlDsigBase64Transform.cs: New. Stub + basic logic.
479 * XmlDsigC14NTransform.cs: New. Stub + basic logic.
480 * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
481 * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
482 * XmlDsigXPathTransform.cs: New. Stub + basic logic.
483 * XmlDsigXsltTransform.cs: New. Stub + basic logic.