ChangeLog 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. 2004-03-26 Atsushi Enomoto <[email protected]>
  2. * SignedXml.cs :
  3. - Use specified (or default) XmlResolver to get external resource,
  4. instead of using WebRequest directly. Also modified it easier.
  5. - ApplyTransform() : Clone only when it is required. Handle
  6. transformation output other than Stream.
  7. - Even if applicable key was not found in GetHash(), don't throw
  8. crypto exception every time and just return false (MS does it).
  9. Throw an exception only when no key was specified as KeyInfo.
  10. * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
  11. incorrectly set InputTypes internally.
  12. * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
  13. transform parameter (i.e. <XPath>..</XPath>) should be registered
  14. to XsltContext. Otherwise prefix binding error occurs.
  15. Just filter attribute node, instead of filtering attribute children.
  16. 2004-03-25 Sebastien Pouliot <[email protected]>
  17. * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
  18. false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
  19. -retrieval-method.xml in the Phaos test suite.
  20. 2004-03-24 Atsushi Enomoto <[email protected]>
  21. * Reference.cs, Signature.cs : They should keep input element and hence
  22. keep namespace context nodes on LoadXml() as same as SignedInfo.
  23. * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
  24. namespace nodes into the input document (unlike other classes, there
  25. seems no other way to keep ns-nodes here).
  26. Now some of W3C phaos xmldsig test passes.
  27. 2004-03-23 Atsushi Enomoto <[email protected]>
  28. * SignedInfo.cs : It holds input element and directly returns it
  29. unless the properties are not set.
  30. Throw CryptographicException when Reference is empty *and* GetXml()
  31. is *created*. (when just returning input element, no exception is
  32. thrown).
  33. 2004-03-23 Atsushi Enomoto <[email protected]>
  34. * DataObject.cs : It now holds element instead of each parameters.
  35. Avoid loading element content to different document unless its
  36. properties were modified (to keep namespace node context).
  37. 2004-03-20 Sebastien Pouliot <[email protected]>
  38. * SignedXml.cs: Removed unused (and commented) ComputeHash method.
  39. 2004-03-19 Atsushi Enomoto <[email protected]>
  40. * XmlDsigXPathTransform.cs : just found stupid bug.
  41. 2004-03-19 Sebastien Pouliot <[email protected]>
  42. * SignedXml.cs: Lot of small changes to complete TODOs and to match
  43. the new unit tests.
  44. 2004-03-17 Sebastien Pouliot <[email protected]>
  45. * SignedXml.cs: The old method was working for creating signature -
  46. so it was reintroduced for (only) this case.
  47. 2004-03-17 Atsushi Enomoto <[email protected]>
  48. * SignedXml.cs : the result from enveloped signature transform should
  49. be canonicalized before getting its hash.
  50. * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
  51. if the node is Signature itself it is not allowed.
  52. PreserveWhitespace is required.
  53. 2004-03-16 Sebastien Pouliot <[email protected]>
  54. * SignedXml.cs: Changed (again). This time we use the Stream when
  55. loading the document. We now pass 14 out of 15 of the Merlin's
  56. tests (including one that MS fails). The only failing test is the
  57. one that use the EnvelopedTransform (unfinished).
  58. 2004-03-16 Sebastien Pouliot <[email protected]>
  59. * SignedXml.cs: Commented my last changes to SignedXml as it made other
  60. unis tests fail (in the c14n-izer).
  61. 2004-03-16 Atsushi Enomoto <[email protected]>
  62. * XmlDsigNodeList.cs : removed BOM from code file.
  63. 2004-03-16 Atsushi Enomoto <[email protected]>
  64. * XmlDsigNodeList.cs : added.
  65. * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
  66. * XmlDsigEnvelopedSignatureTransform.cs :
  67. Implemented GetOutput(). However, it is totally MS behavior
  68. dependent and not based on the spec (we can reimplement it based on
  69. improved XmlDsigXPathTransform).
  70. * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
  71. 2004-03-15 Sebastien Pouliot <[email protected]>
  72. * SignedXml.cs: Now use the original Signature element before applying
  73. the C14N transformation. Added a check for null in LoadXml.
  74. 2004-03-14 Atsushi Enomoto <[email protected]>
  75. * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
  76. internal XPath context classes).
  77. 2004-03-13 Atsushi Enomoto <[email protected]>
  78. * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
  79. and LoadInput() should just load transformed document.
  80. Transformation should be done in GetOutput() because either of the
  81. stylesheet or input can be loaded in prior. Adjusted code format.
  82. 2004-03-12 Sebastien Pouliot <[email protected]>
  83. * Signature.cs: KeyInfo isn't required in schema.
  84. * SignedInfo.cs: Added support for missing HMACOutputLength.
  85. * SignedXml.cs: Added support to download a reference (experimental).
  86. Now throw exception for unknown hash algorithm or canonicalization
  87. methods. Changed GetPublicKey to iterate all available keys (not just
  88. the first one).
  89. 2004-03-09 Atsushi Enomoto <[email protected]>
  90. * KeyInfo.cs : Attribute Id was not handlded.
  91. * KeyInfoX509Data.cs : all array members return null when there are
  92. no such contents. Just find child elements, not descendants.
  93. * SignedXml.cs : key is not always required when CheckSignature() is
  94. called.
  95. * XmlDsigXsltTransform.cs : LoadInput should allow node list.
  96. * XmlSignature.cs : added GetChildElements().
  97. 2004-03-09 Atsushi Enomoto <[email protected]>
  98. * KeyInfoX509Data.cs : trivial local var name fix.
  99. 2004-03-09 Atsushi Enomoto <[email protected]>
  100. * KeyInfoX509Data.cs,
  101. Reference.cs,
  102. SignedInfo.cs,
  103. XmlSignature.cs : GetElementsByTagName() should be eliminated or
  104. at least should use namespace URI.
  105. 2004-03-04 Atsushi Enomoto <[email protected]>
  106. * KeyInfo.cs :
  107. Fixed LoadXml() to skip text nodes as MS.NET does.
  108. Uncommented out RSAKeyValue.
  109. * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
  110. that incorrectly acquires descendants. Throw CryptographicException
  111. if required elements were not found.
  112. * Transform.cs : added internal GetResolver().
  113. * XmlDsigXPathTransform.cs,
  114. XmlDsigXsltTransform.cs : use XmlResolver.
  115. 2004-02-19 Tim Coleman <[email protected]>
  116. * SymmetricKeyWrap.cs:
  117. Add AES Key Wrap
  118. * EncryptedXml.cs:
  119. Add calls to SymmetricKeyWrap
  120. 2004-02-11 Sebastien Pouliot <[email protected]>
  121. * Reference.cs: Added LoadInnerXml to transforms. Removed unused
  122. variable.
  123. * Transform.cs: Import GetInnerXml in GetXml.
  124. * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
  125. allocations.
  126. * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
  127. * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
  128. expression and LoadInput. It nows match MS implementation but doesn't
  129. work like I think it should (but neither is MS implementation).
  130. 2004-02-10 Tim Coleman <[email protected]>
  131. * DataReference.cs EncryptedKey.cs EncryptedXml.cs
  132. * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
  133. * X509IssuerSerial.cs XmlDecryptionTransform.cs:
  134. Add new classes for Xml Encryption in 1.2
  135. * CipherData.cs CipherReference.cs EncryptedData.cs
  136. * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
  137. Change NamespaceURI reference to EncryptedXml class.
  138. Make compliant with 1.2
  139. * XmlEncryption.cs:
  140. Add new entity names.
  141. 2004-02-07 Tim Coleman <[email protected]>
  142. * CipherData.cs CipherReference.cs EncryptedData.cs
  143. * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
  144. * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
  145. New classes added for Xml Encryption in 1.2
  146. * KeyInfoRetrievalMethod.cs:
  147. Added Type attribute for 1.2
  148. * XmlSignature.cs:
  149. Added string constants for algorithm namespaces
  150. 2004-01-11 Sebastien Pouliot <[email protected]>
  151. * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
  152. Resolver property.
  153. * Transform.cs: Fixed class signature (for 1.1+) by adding public to
  154. Resolver property.
  155. 2003-12-14 Sebastien Pouliot <[email protected]>
  156. * SignedXml.cs: Now load the public key when verifying (bug #52084)
  157. and can find an element by it's Id when Id isn't defined in DTD or XSD.
  158. 2003-07-27 Sebastien Pouliot <[email protected]>
  159. * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
  160. 2003-07-24 Sebastien Pouliot <[email protected]>
  161. * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
  162. from Aleksey Sanin.
  163. 2003-06-19 Nick Drochak <[email protected]>
  164. * DSAKeyValue.cs:
  165. * RSAKeyValue.cs: Work around for mcs? bug 45127.
  166. 2003-06-11 Sebastien Pouliot <[email protected]>
  167. * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
  168. * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
  169. 2003-05-25 Sebastien Pouliot <[email protected]>
  170. * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
  171. to match framework 1.1 (this was a bug in framework 1.0).
  172. 2003-05-10 Sebastien Pouliot <[email protected]>
  173. * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
  174. documentation (no public declaration).
  175. * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
  176. documentation (no public declaration).
  177. 2003-03-03 Sebastien Pouliot <[email protected]>
  178. * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
  179. XML generation).
  180. * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
  181. XML generation).
  182. * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
  183. 2003-03-02 Sebastien Pouliot <[email protected]>
  184. * DSAKeyValue.cs: New XML generation is commented. Old string technique
  185. did a better job to match MS implementation.
  186. * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
  187. * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
  188. * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
  189. * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
  190. * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
  191. * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
  192. * RSAKeyValue.cs: New XML generation is commented. Old string technique
  193. did a better job to match MS implementation.
  194. * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
  195. * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
  196. * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
  197. * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
  198. * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
  199. * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
  200. * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
  201. * XmlSignature.cs: New. Private contants (construct similar to WSE).
  202. 2003-02-19 Sebastien Pouliot <[email protected]>
  203. * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
  204. will reflect reality).
  205. 2003-01-17 Sebastien Pouliot <[email protected]>
  206. * KeyInfo.cs: Changed some protected declaration to private.
  207. * KeyInfoName.cs: Changed some protected declaration to private.
  208. * KeyInfoNode.cs: Changed some protected declaration to private.
  209. * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
  210. * KeyInfoX509Data.cs: Changed some protected declaration to private.
  211. * Transform.cs: Changed some protected declaration to private.
  212. * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
  213. * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
  214. * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
  215. * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
  216. * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
  217. * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
  218. 2002-11-28 Sebastien Pouliot <[email protected]>
  219. * TODOAttribute.cs: New. Still much to do ;-)
  220. * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
  221. functionnal.
  222. * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
  223. functionnal.
  224. 2002-11-20 Sebastien Pouliot <[email protected]>
  225. * DataObject.cs: New. Complete implementation.
  226. * DSAKeyValue.cs: New. Complete implementation.
  227. * KeyInfo.cs: New. Complete implementation.
  228. * KeyInfoClause.cs: New. Abstract class (complete).
  229. * KeyInfoName.cs: New. Complete implementation.
  230. * KeyInfoNode.cs: New. Complete implementation.
  231. * KeyInfoRetrievalMethod.cs: New. Complete implementation.
  232. * KeyInfoX509Data.cs: New. Complete implementation.
  233. * Reference.cs: New. Incomplete implementation.
  234. * RSAKeyValue.cs: New. Complete implementation.
  235. * Signature.cs: New. Almost complete implementation - returned
  236. XML isn't exactly like the MS implementation.
  237. * SignedInfo.cs: New. Complete except SignatureLength.
  238. * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
  239. Still many TODO!
  240. * Transform.cs: New. Abstract class (complete).
  241. * TransformChain.cs: New. Complete implementation.
  242. * XmlDsigBase64Transform.cs: New. Stub + basic logic.
  243. * XmlDsigC14NTransform.cs: New. Stub + basic logic.
  244. * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
  245. * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
  246. * XmlDsigXPathTransform.cs: New. Stub + basic logic.
  247. * XmlDsigXsltTransform.cs: New. Stub + basic logic.