1 2004-08-31 Tim Coleman <tim@timcoleman.com>
2 * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
4 * SignedXml.cs Transform.cs:
6 * EncryptedXml.cs SymmetricKeyWrap.cs:
7 Get symmetric key wrap to work for AES keys.
9 2004-08-30 Tim Coleman <tim@timcoleman.com>
10 * EncryptedXml.cs: Implement lots of XML Encryption code.
11 * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
12 * XmlSignature.cs: Add NET_2_0 check around EncryptedKey
14 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
16 * KeyInfo.cs : NET_1_1 build fix.
18 2004-08-29 Tim Coleman <tim@timcoleman.com>
19 * EncryptedKey.cs: Fix element name when generating XML.
20 * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
21 * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
22 * KeyInfoName.cs: Add missing constructor
23 * SymmetricKeyWrap.cs: Add untested TripleDES key wrap
24 algorithms for encryption/decryption
25 * XmlSignature.cs: Add EncryptedKey constant.
26 * EncryptedData.cs: Add .NET 2.0 method stubs.
28 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
30 * Signature.cs : Fixed NextElementPos() that incorrectly examined
33 2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
35 * EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
36 XmlEncElementContentUrl.
37 * X509IssuerSerial.cs: Make constructor internal so it doesn't show up
38 in corcompare results for NET_2_0 profile.
40 2004-06-17 Sebastien Pouliot <sebastien@ximian.com>
42 * KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
43 undocumented structure (now documented, and public, in Fx 2.0).
44 * X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
47 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
49 * SignedXml.cs: API signature fixes
51 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
53 * SignedXml.cs : Complete fix for bug #59545. Support #xpointer(id()).
54 Namespace fixup is required when signing prefixed xml.
56 2004-06-04 Atsushi Enomoto <atsushi@ximian.com>
58 * SignedXml.cs : Fix for bug #59545. Handle #xpointer(/) as document.
60 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
62 * SignedXml.cs : partial fix for bug #59165 that does not output
63 namespace that conflicts with element's namespace.
65 2004-05-13 Sebastien Pouliot <sebastien@ximian.com>
67 * SignedXml.cs: Update TODO informations.
69 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
71 * XmlDsigBase64Transform.cs :
72 LoadInput() should retrieve all the descendants.
73 GetOutput() should handle nodes without digging into child nodes.
75 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
78 Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
79 * XmlDsigBase64Transform.cs : Should not output the content of the
80 selected element nodes. Put text content only those text nodes are
82 * XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
83 * XmlDsigXsltTransform.cs : Use XmlResolver to load document and
84 to transform. Throw null reference exception explicitly when
85 the input was not loaded.
87 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
89 * XmlDsigEnvelopedSignatureTransform.cs, XmlDsigXPathTransform.cs,
90 XmlDsigXsltTransform.cs: Fixed build for net_1_0 profile.
92 2004-03-30 Sebastien Pouliot <sebastien@ximian.com>
94 * Reference.cs: Changed code to use CryptoConfig to create transforms.
95 This is "the" way to do it (e.g. to allow new transforms to be added)
96 but cause problems when using VS.NET for debugging. Old code is still
97 present, but commented, for that cause.
99 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
101 * SignedXml.cs : namespace nodes also should be supplied for enveloped
103 * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
105 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
107 * SignedXml.cs : XPath transformation output is not type of Stream.
108 Fix to support them by canonicalizing it.
110 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
112 * XmlDsigXsltTransform.cs : GetOutput() now just returns
113 transformation output.
115 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
117 * SignedXml.cs : Added xmlns support for Manifest.
119 2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
121 * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
122 This should help us to validate more tests from the Phaos suite.
123 Note: Microsoft doesn't support this and we only support it for
124 verification (not signature generation).
125 * SignedXml.cs: Added support for Manifest, including recursive
126 manifests. Made some changes to reuse existing code as much as
127 possible. Better support for local/remote files - but requires
128 catching an Uri exception for local files :-(.
129 * XmlSignature.cs: Added constants for Manifest element and URI.
131 2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
134 - Use specified (or default) XmlResolver to get external resource,
135 instead of using WebRequest directly. Also modified it easier.
136 - ApplyTransform() : Clone only when it is required. Handle
137 transformation output other than Stream.
138 - Even if applicable key was not found in GetHash(), don't throw
139 crypto exception every time and just return false (MS does it).
140 Throw an exception only when no key was specified as KeyInfo.
141 * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
142 incorrectly set InputTypes internally.
143 * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
144 transform parameter (i.e. <XPath>..</XPath>) should be registered
145 to XsltContext. Otherwise prefix binding error occurs.
146 Just filter attribute node, instead of filtering attribute children.
148 2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
150 * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
151 false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
152 -retrieval-method.xml in the Phaos test suite.
154 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
156 * Reference.cs, Signature.cs : They should keep input element and hence
157 keep namespace context nodes on LoadXml() as same as SignedInfo.
158 * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
159 namespace nodes into the input document (unlike other classes, there
160 seems no other way to keep ns-nodes here).
161 Now some of W3C phaos xmldsig test passes.
163 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
165 * SignedInfo.cs : It holds input element and directly returns it
166 unless the properties are not set.
167 Throw CryptographicException when Reference is empty *and* GetXml()
168 is *created*. (when just returning input element, no exception is
171 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
173 * DataObject.cs : It now holds element instead of each parameters.
174 Avoid loading element content to different document unless its
175 properties were modified (to keep namespace node context).
177 2004-03-20 Sebastien Pouliot <sebastien@ximian.com>
179 * SignedXml.cs: Removed unused (and commented) ComputeHash method.
181 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
183 * XmlDsigXPathTransform.cs : just found stupid bug.
185 2004-03-19 Sebastien Pouliot <sebastien@ximian.com>
187 * SignedXml.cs: Lot of small changes to complete TODOs and to match
190 2004-03-17 Sebastien Pouliot <sebastien@ximian.com>
192 * SignedXml.cs: The old method was working for creating signature -
193 so it was reintroduced for (only) this case.
195 2004-03-17 Atsushi Enomoto <atsushi@ximian.com>
197 * SignedXml.cs : the result from enveloped signature transform should
198 be canonicalized before getting its hash.
199 * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
200 if the node is Signature itself it is not allowed.
201 PreserveWhitespace is required.
203 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
205 * SignedXml.cs: Changed (again). This time we use the Stream when
206 loading the document. We now pass 14 out of 15 of the Merlin's
207 tests (including one that MS fails). The only failing test is the
208 one that use the EnvelopedTransform (unfinished).
210 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
212 * SignedXml.cs: Commented my last changes to SignedXml as it made other
213 unis tests fail (in the c14n-izer).
215 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
217 * XmlDsigNodeList.cs : removed BOM from code file.
219 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
221 * XmlDsigNodeList.cs : added.
222 * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
223 * XmlDsigEnvelopedSignatureTransform.cs :
224 Implemented GetOutput(). However, it is totally MS behavior
225 dependent and not based on the spec (we can reimplement it based on
226 improved XmlDsigXPathTransform).
227 * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
229 2004-03-15 Sebastien Pouliot <sebastien@ximian.com>
231 * SignedXml.cs: Now use the original Signature element before applying
232 the C14N transformation. Added a check for null in LoadXml.
234 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
236 * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
237 internal XPath context classes).
239 2004-03-13 Atsushi Enomoto <atsushi@ximian.com>
241 * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
242 and LoadInput() should just load transformed document.
243 Transformation should be done in GetOutput() because either of the
244 stylesheet or input can be loaded in prior. Adjusted code format.
246 2004-03-12 Sebastien Pouliot <sebastien@ximian.com>
248 * Signature.cs: KeyInfo isn't required in schema.
249 * SignedInfo.cs: Added support for missing HMACOutputLength.
250 * SignedXml.cs: Added support to download a reference (experimental).
251 Now throw exception for unknown hash algorithm or canonicalization
252 methods. Changed GetPublicKey to iterate all available keys (not just
255 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
257 * KeyInfo.cs : Attribute Id was not handlded.
258 * KeyInfoX509Data.cs : all array members return null when there are
259 no such contents. Just find child elements, not descendants.
260 * SignedXml.cs : key is not always required when CheckSignature() is
262 * XmlDsigXsltTransform.cs : LoadInput should allow node list.
263 * XmlSignature.cs : added GetChildElements().
265 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
267 * KeyInfoX509Data.cs : trivial local var name fix.
269 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
271 * KeyInfoX509Data.cs,
274 XmlSignature.cs : GetElementsByTagName() should be eliminated or
275 at least should use namespace URI.
277 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
280 Fixed LoadXml() to skip text nodes as MS.NET does.
281 Uncommented out RSAKeyValue.
282 * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
283 that incorrectly acquires descendants. Throw CryptographicException
284 if required elements were not found.
285 * Transform.cs : added internal GetResolver().
286 * XmlDsigXPathTransform.cs,
287 XmlDsigXsltTransform.cs : use XmlResolver.
289 2004-02-19 Tim Coleman <tim@timcoleman.com>
290 * SymmetricKeyWrap.cs:
293 Add calls to SymmetricKeyWrap
295 2004-02-11 Sebastien Pouliot <sebastien@ximian.com>
297 * Reference.cs: Added LoadInnerXml to transforms. Removed unused
299 * Transform.cs: Import GetInnerXml in GetXml.
300 * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
302 * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
303 * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
304 expression and LoadInput. It nows match MS implementation but doesn't
305 work like I think it should (but neither is MS implementation).
307 2004-02-10 Tim Coleman <tim@timcoleman.com>
308 * DataReference.cs EncryptedKey.cs EncryptedXml.cs
309 * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
310 * X509IssuerSerial.cs XmlDecryptionTransform.cs:
311 Add new classes for Xml Encryption in 1.2
312 * CipherData.cs CipherReference.cs EncryptedData.cs
313 * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
314 Change NamespaceURI reference to EncryptedXml class.
315 Make compliant with 1.2
317 Add new entity names.
320 2004-02-07 Tim Coleman <tim@timcoleman.com>
321 * CipherData.cs CipherReference.cs EncryptedData.cs
322 * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
323 * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
324 New classes added for Xml Encryption in 1.2
325 * KeyInfoRetrievalMethod.cs:
326 Added Type attribute for 1.2
328 Added string constants for algorithm namespaces
330 2004-01-11 Sebastien Pouliot <spouliot@videotron.ca>
332 * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
334 * Transform.cs: Fixed class signature (for 1.1+) by adding public to
337 2003-12-14 Sebastien Pouliot <spouliot@videotron.ca>
339 * SignedXml.cs: Now load the public key when verifying (bug #52084)
340 and can find an element by it's Id when Id isn't defined in DTD or XSD.
342 2003-07-27 Sebastien Pouliot <spouliot@videotron.ca>
344 * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
346 2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
348 * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
351 2003-06-19 Nick Drochak <ndrochak@gol.com>
354 * RSAKeyValue.cs: Work around for mcs? bug 45127.
356 2003-06-11 Sebastien Pouliot <spouliot@motus.com>
358 * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
359 * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
361 2003-05-25 Sebastien Pouliot <spouliot@videotron.ca>
363 * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
364 to match framework 1.1 (this was a bug in framework 1.0).
366 2003-05-10 Sebastien Pouliot <spouliot@videotron.ca>
368 * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
369 documentation (no public declaration).
370 * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
371 documentation (no public declaration).
373 2003-03-03 Sebastien Pouliot <spouliot@videotron.ca>
375 * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
377 * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
379 * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
381 2003-03-02 Sebastien Pouliot <spouliot@videotron.ca>
383 * DSAKeyValue.cs: New XML generation is commented. Old string technique
384 did a better job to match MS implementation.
385 * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
386 * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
387 * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
388 * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
389 * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
390 * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
391 * RSAKeyValue.cs: New XML generation is commented. Old string technique
392 did a better job to match MS implementation.
393 * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
394 * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
395 * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
396 * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
397 * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
398 * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
399 * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
400 * XmlSignature.cs: New. Private contants (construct similar to WSE).
402 2003-02-19 Sebastien Pouliot <spouliot@videotron.ca>
404 * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
405 will reflect reality).
407 2003-01-17 Sebastien Pouliot <spouliot@videotron.ca>
409 * KeyInfo.cs: Changed some protected declaration to private.
410 * KeyInfoName.cs: Changed some protected declaration to private.
411 * KeyInfoNode.cs: Changed some protected declaration to private.
412 * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
413 * KeyInfoX509Data.cs: Changed some protected declaration to private.
414 * Transform.cs: Changed some protected declaration to private.
415 * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
416 * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
417 * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
418 * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
419 * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
420 * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
422 2002-11-28 Sebastien Pouliot <spouliot@videotron.ca>
424 * TODOAttribute.cs: New. Still much to do ;-)
425 * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
427 * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
430 2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
432 * DataObject.cs: New. Complete implementation.
433 * DSAKeyValue.cs: New. Complete implementation.
434 * KeyInfo.cs: New. Complete implementation.
435 * KeyInfoClause.cs: New. Abstract class (complete).
436 * KeyInfoName.cs: New. Complete implementation.
437 * KeyInfoNode.cs: New. Complete implementation.
438 * KeyInfoRetrievalMethod.cs: New. Complete implementation.
439 * KeyInfoX509Data.cs: New. Complete implementation.
440 * Reference.cs: New. Incomplete implementation.
441 * RSAKeyValue.cs: New. Complete implementation.
442 * Signature.cs: New. Almost complete implementation - returned
443 XML isn't exactly like the MS implementation.
444 * SignedInfo.cs: New. Complete except SignatureLength.
445 * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
447 * Transform.cs: New. Abstract class (complete).
448 * TransformChain.cs: New. Complete implementation.
449 * XmlDsigBase64Transform.cs: New. Stub + basic logic.
450 * XmlDsigC14NTransform.cs: New. Stub + basic logic.
451 * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
452 * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
453 * XmlDsigXPathTransform.cs: New. Stub + basic logic.
454 * XmlDsigXsltTransform.cs: New. Stub + basic logic.