1 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
4 Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
5 * XmlDsigBase64Transform.cs : Should not output the content of the
6 selected element nodes. Put text content only those text nodes are
8 * XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
9 * XmlDsigXsltTransform.cs : Use XmlResolver to load document and
10 to transform. Throw null reference exception explicitly when
11 the input was not loaded.
13 2004-04-02 Lluis Sanchez Gual <lluis@ximian.com>
15 * XmlDsigEnvelopedSignatureTransform.cs, XmlDsigXPathTransform.cs,
16 XmlDsigXsltTransform.cs: Fixed build for net_1_0 profile.
18 2004-03-30 Sebastien Pouliot <sebastien@ximian.com>
20 * Reference.cs: Changed code to use CryptoConfig to create transforms.
21 This is "the" way to do it (e.g. to allow new transforms to be added)
22 but cause problems when using VS.NET for debugging. Old code is still
23 present, but commented, for that cause.
25 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
27 * SignedXml.cs : namespace nodes also should be supplied for enveloped
29 * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
31 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
33 * SignedXml.cs : XPath transformation output is not type of Stream.
34 Fix to support them by canonicalizing it.
36 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
38 * XmlDsigXsltTransform.cs : GetOutput() now just returns
39 transformation output.
41 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
43 * SignedXml.cs : Added xmlns support for Manifest.
45 2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
47 * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
48 This should help us to validate more tests from the Phaos suite.
49 Note: Microsoft doesn't support this and we only support it for
50 verification (not signature generation).
51 * SignedXml.cs: Added support for Manifest, including recursive
52 manifests. Made some changes to reuse existing code as much as
53 possible. Better support for local/remote files - but requires
54 catching an Uri exception for local files :-(.
55 * XmlSignature.cs: Added constants for Manifest element and URI.
57 2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
60 - Use specified (or default) XmlResolver to get external resource,
61 instead of using WebRequest directly. Also modified it easier.
62 - ApplyTransform() : Clone only when it is required. Handle
63 transformation output other than Stream.
64 - Even if applicable key was not found in GetHash(), don't throw
65 crypto exception every time and just return false (MS does it).
66 Throw an exception only when no key was specified as KeyInfo.
67 * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
68 incorrectly set InputTypes internally.
69 * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
70 transform parameter (i.e. <XPath>..</XPath>) should be registered
71 to XsltContext. Otherwise prefix binding error occurs.
72 Just filter attribute node, instead of filtering attribute children.
74 2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
76 * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
77 false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
78 -retrieval-method.xml in the Phaos test suite.
80 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
82 * Reference.cs, Signature.cs : They should keep input element and hence
83 keep namespace context nodes on LoadXml() as same as SignedInfo.
84 * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
85 namespace nodes into the input document (unlike other classes, there
86 seems no other way to keep ns-nodes here).
87 Now some of W3C phaos xmldsig test passes.
89 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
91 * SignedInfo.cs : It holds input element and directly returns it
92 unless the properties are not set.
93 Throw CryptographicException when Reference is empty *and* GetXml()
94 is *created*. (when just returning input element, no exception is
97 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
99 * DataObject.cs : It now holds element instead of each parameters.
100 Avoid loading element content to different document unless its
101 properties were modified (to keep namespace node context).
103 2004-03-20 Sebastien Pouliot <sebastien@ximian.com>
105 * SignedXml.cs: Removed unused (and commented) ComputeHash method.
107 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
109 * XmlDsigXPathTransform.cs : just found stupid bug.
111 2004-03-19 Sebastien Pouliot <sebastien@ximian.com>
113 * SignedXml.cs: Lot of small changes to complete TODOs and to match
116 2004-03-17 Sebastien Pouliot <sebastien@ximian.com>
118 * SignedXml.cs: The old method was working for creating signature -
119 so it was reintroduced for (only) this case.
121 2004-03-17 Atsushi Enomoto <atsushi@ximian.com>
123 * SignedXml.cs : the result from enveloped signature transform should
124 be canonicalized before getting its hash.
125 * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
126 if the node is Signature itself it is not allowed.
127 PreserveWhitespace is required.
129 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
131 * SignedXml.cs: Changed (again). This time we use the Stream when
132 loading the document. We now pass 14 out of 15 of the Merlin's
133 tests (including one that MS fails). The only failing test is the
134 one that use the EnvelopedTransform (unfinished).
136 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
138 * SignedXml.cs: Commented my last changes to SignedXml as it made other
139 unis tests fail (in the c14n-izer).
141 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
143 * XmlDsigNodeList.cs : removed BOM from code file.
145 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
147 * XmlDsigNodeList.cs : added.
148 * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
149 * XmlDsigEnvelopedSignatureTransform.cs :
150 Implemented GetOutput(). However, it is totally MS behavior
151 dependent and not based on the spec (we can reimplement it based on
152 improved XmlDsigXPathTransform).
153 * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
155 2004-03-15 Sebastien Pouliot <sebastien@ximian.com>
157 * SignedXml.cs: Now use the original Signature element before applying
158 the C14N transformation. Added a check for null in LoadXml.
160 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
162 * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
163 internal XPath context classes).
165 2004-03-13 Atsushi Enomoto <atsushi@ximian.com>
167 * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
168 and LoadInput() should just load transformed document.
169 Transformation should be done in GetOutput() because either of the
170 stylesheet or input can be loaded in prior. Adjusted code format.
172 2004-03-12 Sebastien Pouliot <sebastien@ximian.com>
174 * Signature.cs: KeyInfo isn't required in schema.
175 * SignedInfo.cs: Added support for missing HMACOutputLength.
176 * SignedXml.cs: Added support to download a reference (experimental).
177 Now throw exception for unknown hash algorithm or canonicalization
178 methods. Changed GetPublicKey to iterate all available keys (not just
181 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
183 * KeyInfo.cs : Attribute Id was not handlded.
184 * KeyInfoX509Data.cs : all array members return null when there are
185 no such contents. Just find child elements, not descendants.
186 * SignedXml.cs : key is not always required when CheckSignature() is
188 * XmlDsigXsltTransform.cs : LoadInput should allow node list.
189 * XmlSignature.cs : added GetChildElements().
191 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
193 * KeyInfoX509Data.cs : trivial local var name fix.
195 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
197 * KeyInfoX509Data.cs,
200 XmlSignature.cs : GetElementsByTagName() should be eliminated or
201 at least should use namespace URI.
203 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
206 Fixed LoadXml() to skip text nodes as MS.NET does.
207 Uncommented out RSAKeyValue.
208 * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
209 that incorrectly acquires descendants. Throw CryptographicException
210 if required elements were not found.
211 * Transform.cs : added internal GetResolver().
212 * XmlDsigXPathTransform.cs,
213 XmlDsigXsltTransform.cs : use XmlResolver.
215 2004-02-19 Tim Coleman <tim@timcoleman.com>
216 * SymmetricKeyWrap.cs:
219 Add calls to SymmetricKeyWrap
221 2004-02-11 Sebastien Pouliot <sebastien@ximian.com>
223 * Reference.cs: Added LoadInnerXml to transforms. Removed unused
225 * Transform.cs: Import GetInnerXml in GetXml.
226 * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
228 * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
229 * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
230 expression and LoadInput. It nows match MS implementation but doesn't
231 work like I think it should (but neither is MS implementation).
233 2004-02-10 Tim Coleman <tim@timcoleman.com>
234 * DataReference.cs EncryptedKey.cs EncryptedXml.cs
235 * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
236 * X509IssuerSerial.cs XmlDecryptionTransform.cs:
237 Add new classes for Xml Encryption in 1.2
238 * CipherData.cs CipherReference.cs EncryptedData.cs
239 * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
240 Change NamespaceURI reference to EncryptedXml class.
241 Make compliant with 1.2
243 Add new entity names.
246 2004-02-07 Tim Coleman <tim@timcoleman.com>
247 * CipherData.cs CipherReference.cs EncryptedData.cs
248 * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
249 * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
250 New classes added for Xml Encryption in 1.2
251 * KeyInfoRetrievalMethod.cs:
252 Added Type attribute for 1.2
254 Added string constants for algorithm namespaces
256 2004-01-11 Sebastien Pouliot <spouliot@videotron.ca>
258 * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
260 * Transform.cs: Fixed class signature (for 1.1+) by adding public to
263 2003-12-14 Sebastien Pouliot <spouliot@videotron.ca>
265 * SignedXml.cs: Now load the public key when verifying (bug #52084)
266 and can find an element by it's Id when Id isn't defined in DTD or XSD.
268 2003-07-27 Sebastien Pouliot <spouliot@videotron.ca>
270 * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
272 2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
274 * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
277 2003-06-19 Nick Drochak <ndrochak@gol.com>
280 * RSAKeyValue.cs: Work around for mcs? bug 45127.
282 2003-06-11 Sebastien Pouliot <spouliot@motus.com>
284 * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
285 * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
287 2003-05-25 Sebastien Pouliot <spouliot@videotron.ca>
289 * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
290 to match framework 1.1 (this was a bug in framework 1.0).
292 2003-05-10 Sebastien Pouliot <spouliot@videotron.ca>
294 * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
295 documentation (no public declaration).
296 * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
297 documentation (no public declaration).
299 2003-03-03 Sebastien Pouliot <spouliot@videotron.ca>
301 * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
303 * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
305 * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
307 2003-03-02 Sebastien Pouliot <spouliot@videotron.ca>
309 * DSAKeyValue.cs: New XML generation is commented. Old string technique
310 did a better job to match MS implementation.
311 * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
312 * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
313 * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
314 * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
315 * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
316 * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
317 * RSAKeyValue.cs: New XML generation is commented. Old string technique
318 did a better job to match MS implementation.
319 * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
320 * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
321 * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
322 * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
323 * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
324 * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
325 * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
326 * XmlSignature.cs: New. Private contants (construct similar to WSE).
328 2003-02-19 Sebastien Pouliot <spouliot@videotron.ca>
330 * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
331 will reflect reality).
333 2003-01-17 Sebastien Pouliot <spouliot@videotron.ca>
335 * KeyInfo.cs: Changed some protected declaration to private.
336 * KeyInfoName.cs: Changed some protected declaration to private.
337 * KeyInfoNode.cs: Changed some protected declaration to private.
338 * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
339 * KeyInfoX509Data.cs: Changed some protected declaration to private.
340 * Transform.cs: Changed some protected declaration to private.
341 * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
342 * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
343 * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
344 * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
345 * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
346 * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
348 2002-11-28 Sebastien Pouliot <spouliot@videotron.ca>
350 * TODOAttribute.cs: New. Still much to do ;-)
351 * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
353 * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
356 2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
358 * DataObject.cs: New. Complete implementation.
359 * DSAKeyValue.cs: New. Complete implementation.
360 * KeyInfo.cs: New. Complete implementation.
361 * KeyInfoClause.cs: New. Abstract class (complete).
362 * KeyInfoName.cs: New. Complete implementation.
363 * KeyInfoNode.cs: New. Complete implementation.
364 * KeyInfoRetrievalMethod.cs: New. Complete implementation.
365 * KeyInfoX509Data.cs: New. Complete implementation.
366 * Reference.cs: New. Incomplete implementation.
367 * RSAKeyValue.cs: New. Complete implementation.
368 * Signature.cs: New. Almost complete implementation - returned
369 XML isn't exactly like the MS implementation.
370 * SignedInfo.cs: New. Complete except SignatureLength.
371 * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
373 * Transform.cs: New. Abstract class (complete).
374 * TransformChain.cs: New. Complete implementation.
375 * XmlDsigBase64Transform.cs: New. Stub + basic logic.
376 * XmlDsigC14NTransform.cs: New. Stub + basic logic.
377 * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
378 * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
379 * XmlDsigXPathTransform.cs: New. Stub + basic logic.
380 * XmlDsigXsltTransform.cs: New. Stub + basic logic.