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