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