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