1 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
3 * SignedXml.cs : namespace nodes also should be supplied for enveloped
5 * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
7 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
9 * SignedXml.cs : XPath transformation output is not type of Stream.
10 Fix to support them by canonicalizing it.
12 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
14 * XmlDsigXsltTransform.cs : GetOutput() now just returns
15 transformation output.
17 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
19 * SignedXml.cs : Added xmlns support for Manifest.
21 2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
23 * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
24 This should help us to validate more tests from the Phaos suite.
25 Note: Microsoft doesn't support this and we only support it for
26 verification (not signature generation).
27 * SignedXml.cs: Added support for Manifest, including recursive
28 manifests. Made some changes to reuse existing code as much as
29 possible. Better support for local/remote files - but requires
30 catching an Uri exception for local files :-(.
31 * XmlSignature.cs: Added constants for Manifest element and URI.
33 2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
36 - Use specified (or default) XmlResolver to get external resource,
37 instead of using WebRequest directly. Also modified it easier.
38 - ApplyTransform() : Clone only when it is required. Handle
39 transformation output other than Stream.
40 - Even if applicable key was not found in GetHash(), don't throw
41 crypto exception every time and just return false (MS does it).
42 Throw an exception only when no key was specified as KeyInfo.
43 * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
44 incorrectly set InputTypes internally.
45 * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
46 transform parameter (i.e. <XPath>..</XPath>) should be registered
47 to XsltContext. Otherwise prefix binding error occurs.
48 Just filter attribute node, instead of filtering attribute children.
50 2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
52 * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
53 false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
54 -retrieval-method.xml in the Phaos test suite.
56 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
58 * Reference.cs, Signature.cs : They should keep input element and hence
59 keep namespace context nodes on LoadXml() as same as SignedInfo.
60 * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
61 namespace nodes into the input document (unlike other classes, there
62 seems no other way to keep ns-nodes here).
63 Now some of W3C phaos xmldsig test passes.
65 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
67 * SignedInfo.cs : It holds input element and directly returns it
68 unless the properties are not set.
69 Throw CryptographicException when Reference is empty *and* GetXml()
70 is *created*. (when just returning input element, no exception is
73 2004-03-23 Atsushi Enomoto <atsushi@ximian.com>
75 * DataObject.cs : It now holds element instead of each parameters.
76 Avoid loading element content to different document unless its
77 properties were modified (to keep namespace node context).
79 2004-03-20 Sebastien Pouliot <sebastien@ximian.com>
81 * SignedXml.cs: Removed unused (and commented) ComputeHash method.
83 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
85 * XmlDsigXPathTransform.cs : just found stupid bug.
87 2004-03-19 Sebastien Pouliot <sebastien@ximian.com>
89 * SignedXml.cs: Lot of small changes to complete TODOs and to match
92 2004-03-17 Sebastien Pouliot <sebastien@ximian.com>
94 * SignedXml.cs: The old method was working for creating signature -
95 so it was reintroduced for (only) this case.
97 2004-03-17 Atsushi Enomoto <atsushi@ximian.com>
99 * SignedXml.cs : the result from enveloped signature transform should
100 be canonicalized before getting its hash.
101 * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
102 if the node is Signature itself it is not allowed.
103 PreserveWhitespace is required.
105 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
107 * SignedXml.cs: Changed (again). This time we use the Stream when
108 loading the document. We now pass 14 out of 15 of the Merlin's
109 tests (including one that MS fails). The only failing test is the
110 one that use the EnvelopedTransform (unfinished).
112 2004-03-16 Sebastien Pouliot <sebastien@ximian.com>
114 * SignedXml.cs: Commented my last changes to SignedXml as it made other
115 unis tests fail (in the c14n-izer).
117 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
119 * XmlDsigNodeList.cs : removed BOM from code file.
121 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
123 * XmlDsigNodeList.cs : added.
124 * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
125 * XmlDsigEnvelopedSignatureTransform.cs :
126 Implemented GetOutput(). However, it is totally MS behavior
127 dependent and not based on the spec (we can reimplement it based on
128 improved XmlDsigXPathTransform).
129 * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
131 2004-03-15 Sebastien Pouliot <sebastien@ximian.com>
133 * SignedXml.cs: Now use the original Signature element before applying
134 the C14N transformation. Added a check for null in LoadXml.
136 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
138 * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
139 internal XPath context classes).
141 2004-03-13 Atsushi Enomoto <atsushi@ximian.com>
143 * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
144 and LoadInput() should just load transformed document.
145 Transformation should be done in GetOutput() because either of the
146 stylesheet or input can be loaded in prior. Adjusted code format.
148 2004-03-12 Sebastien Pouliot <sebastien@ximian.com>
150 * Signature.cs: KeyInfo isn't required in schema.
151 * SignedInfo.cs: Added support for missing HMACOutputLength.
152 * SignedXml.cs: Added support to download a reference (experimental).
153 Now throw exception for unknown hash algorithm or canonicalization
154 methods. Changed GetPublicKey to iterate all available keys (not just
157 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
159 * KeyInfo.cs : Attribute Id was not handlded.
160 * KeyInfoX509Data.cs : all array members return null when there are
161 no such contents. Just find child elements, not descendants.
162 * SignedXml.cs : key is not always required when CheckSignature() is
164 * XmlDsigXsltTransform.cs : LoadInput should allow node list.
165 * XmlSignature.cs : added GetChildElements().
167 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
169 * KeyInfoX509Data.cs : trivial local var name fix.
171 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
173 * KeyInfoX509Data.cs,
176 XmlSignature.cs : GetElementsByTagName() should be eliminated or
177 at least should use namespace URI.
179 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
182 Fixed LoadXml() to skip text nodes as MS.NET does.
183 Uncommented out RSAKeyValue.
184 * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
185 that incorrectly acquires descendants. Throw CryptographicException
186 if required elements were not found.
187 * Transform.cs : added internal GetResolver().
188 * XmlDsigXPathTransform.cs,
189 XmlDsigXsltTransform.cs : use XmlResolver.
191 2004-02-19 Tim Coleman <tim@timcoleman.com>
192 * SymmetricKeyWrap.cs:
195 Add calls to SymmetricKeyWrap
197 2004-02-11 Sebastien Pouliot <sebastien@ximian.com>
199 * Reference.cs: Added LoadInnerXml to transforms. Removed unused
201 * Transform.cs: Import GetInnerXml in GetXml.
202 * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
204 * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
205 * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
206 expression and LoadInput. It nows match MS implementation but doesn't
207 work like I think it should (but neither is MS implementation).
209 2004-02-10 Tim Coleman <tim@timcoleman.com>
210 * DataReference.cs EncryptedKey.cs EncryptedXml.cs
211 * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
212 * X509IssuerSerial.cs XmlDecryptionTransform.cs:
213 Add new classes for Xml Encryption in 1.2
214 * CipherData.cs CipherReference.cs EncryptedData.cs
215 * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
216 Change NamespaceURI reference to EncryptedXml class.
217 Make compliant with 1.2
219 Add new entity names.
222 2004-02-07 Tim Coleman <tim@timcoleman.com>
223 * CipherData.cs CipherReference.cs EncryptedData.cs
224 * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
225 * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
226 New classes added for Xml Encryption in 1.2
227 * KeyInfoRetrievalMethod.cs:
228 Added Type attribute for 1.2
230 Added string constants for algorithm namespaces
232 2004-01-11 Sebastien Pouliot <spouliot@videotron.ca>
234 * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
236 * Transform.cs: Fixed class signature (for 1.1+) by adding public to
239 2003-12-14 Sebastien Pouliot <spouliot@videotron.ca>
241 * SignedXml.cs: Now load the public key when verifying (bug #52084)
242 and can find an element by it's Id when Id isn't defined in DTD or XSD.
244 2003-07-27 Sebastien Pouliot <spouliot@videotron.ca>
246 * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
248 2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
250 * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
253 2003-06-19 Nick Drochak <ndrochak@gol.com>
256 * RSAKeyValue.cs: Work around for mcs? bug 45127.
258 2003-06-11 Sebastien Pouliot <spouliot@motus.com>
260 * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
261 * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
263 2003-05-25 Sebastien Pouliot <spouliot@videotron.ca>
265 * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
266 to match framework 1.1 (this was a bug in framework 1.0).
268 2003-05-10 Sebastien Pouliot <spouliot@videotron.ca>
270 * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
271 documentation (no public declaration).
272 * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
273 documentation (no public declaration).
275 2003-03-03 Sebastien Pouliot <spouliot@videotron.ca>
277 * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
279 * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
281 * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
283 2003-03-02 Sebastien Pouliot <spouliot@videotron.ca>
285 * DSAKeyValue.cs: New XML generation is commented. Old string technique
286 did a better job to match MS implementation.
287 * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
288 * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
289 * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
290 * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
291 * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
292 * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
293 * RSAKeyValue.cs: New XML generation is commented. Old string technique
294 did a better job to match MS implementation.
295 * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
296 * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
297 * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
298 * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
299 * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
300 * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
301 * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
302 * XmlSignature.cs: New. Private contants (construct similar to WSE).
304 2003-02-19 Sebastien Pouliot <spouliot@videotron.ca>
306 * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
307 will reflect reality).
309 2003-01-17 Sebastien Pouliot <spouliot@videotron.ca>
311 * KeyInfo.cs: Changed some protected declaration to private.
312 * KeyInfoName.cs: Changed some protected declaration to private.
313 * KeyInfoNode.cs: Changed some protected declaration to private.
314 * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
315 * KeyInfoX509Data.cs: Changed some protected declaration to private.
316 * Transform.cs: Changed some protected declaration to private.
317 * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
318 * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
319 * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
320 * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
321 * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
322 * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
324 2002-11-28 Sebastien Pouliot <spouliot@videotron.ca>
326 * TODOAttribute.cs: New. Still much to do ;-)
327 * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
329 * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
332 2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
334 * DataObject.cs: New. Complete implementation.
335 * DSAKeyValue.cs: New. Complete implementation.
336 * KeyInfo.cs: New. Complete implementation.
337 * KeyInfoClause.cs: New. Abstract class (complete).
338 * KeyInfoName.cs: New. Complete implementation.
339 * KeyInfoNode.cs: New. Complete implementation.
340 * KeyInfoRetrievalMethod.cs: New. Complete implementation.
341 * KeyInfoX509Data.cs: New. Complete implementation.
342 * Reference.cs: New. Incomplete implementation.
343 * RSAKeyValue.cs: New. Complete implementation.
344 * Signature.cs: New. Almost complete implementation - returned
345 XML isn't exactly like the MS implementation.
346 * SignedInfo.cs: New. Complete except SignatureLength.
347 * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
349 * Transform.cs: New. Abstract class (complete).
350 * TransformChain.cs: New. Complete implementation.
351 * XmlDsigBase64Transform.cs: New. Stub + basic logic.
352 * XmlDsigC14NTransform.cs: New. Stub + basic logic.
353 * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
354 * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
355 * XmlDsigXPathTransform.cs: New. Stub + basic logic.
356 * XmlDsigXsltTransform.cs: New. Stub + basic logic.