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