ChangeLog 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. 2009-07-14 Sebastien Pouliot <[email protected]>
  2. * SignedXml.cs: Fix HMACOutputLength to match XMLDSIG erratum (ref:
  3. CVE-2009-0217) and add stricter checks.
  4. 2009-06-05 Marek Safar <[email protected]>
  5. * *.cs: Fixed NET_2_0 conditional to actually handle Mono.Security
  6. dependency.
  7. 2008-11-01 Sebastien Pouliot <[email protected]>
  8. * EncryptedXml.cs: Add proper null check inside methods.
  9. * SignedXml.cs: GetIdElement returns null if either of its parameter
  10. is null.
  11. * Transform.cs: Comment compatibility-NRE in GetDigestedOutput.
  12. * XmlDecryptionTransform.cs: IsTargetElement returns null if either
  13. of its parameter is null.
  14. * XmlDsigC14NTransform.cs: Comment compatibility-NRE in
  15. GetDigestedOutput.
  16. * XmlDsigExcC14NTransform.cs: Comment compatibility-NRE in
  17. GetDigestedOutput.
  18. [Found using Gendarme CheckParametersNullityInVisibleMethodsRule]
  19. 2008-10-14 Gert Driesen <[email protected]>
  20. * XmlDsigBase64Transform.cs: Use constant for Algorithm namespace.
  21. * XmlDsigExcC14NTransform.cs: Fixed ctors to use WithComments
  22. algorithm if includeComments is true. Assign includeNamespacesPrefixList
  23. to instance field.
  24. * XmlDsigExcC14NWithCommentsTransform.cs: Remove unnecessary
  25. assignment to Algorithm now that base ctor is fixed.
  26. * XmlDsigC14NWithCommentsTransform.cs: Remove unnecessary assignment
  27. to Algorithm now that base ctor is fixed.
  28. * XmlDsigC14NTransform.cs: In default ctor, just invoke .ctor (bool).
  29. In .ctor (bool), assign WithComments algorithm if includeComments is
  30. true. Use constants for Algorithm namespace.
  31. * XmlDsigEnvelopedSignatureTransform.cs: Use constant for Algorithm
  32. namespace.
  33. * XmlDsigXPathTransform.cs: Use constant for Algorithm namespace.
  34. * XmlDsigXsltTransform.cs: Use constant for Algorithm namespace.
  35. * XmlLicenseTransform.cs: Assign Algorithm in ctor.
  36. * XmlSignature.cs: Added constant for XmlLicenseTransform algorithm.
  37. 2008-10-12 Sebastien Pouliot <[email protected]>
  38. * EncryptedReference.cs, EncryptedType.cs: Remove unneeded field
  39. initialization to their default values.
  40. [Found using Gendarme AvoidUnneededFieldInitializationRule]
  41. 2008-09-17 Sebastien Pouliot <[email protected]>
  42. * SignedXmlTest.cs: Add support for signing XML using HMACSHA256,
  43. HMACSHA384, HMACSHA512 and HMACRIPEMD160.
  44. [Fix bug #425724]
  45. 2008-08-07 Atsushi Enomoto <[email protected]>
  46. * set Algorithm in .ctor(bool), fixed bug #398904.
  47. 2008-08-06 Sebastien Pouliot <[email protected]>
  48. * XmlDsigC14NTransform.cs,
  49. * XmlDsigExcC14NTransform.cs
  50. * XmlDsigXsltTransform.cs: Don't use is + as.
  51. [Found using Gendarme AvoidRepetitiveCastsRule]
  52. 2008-06-28 Sebastien Pouliot <[email protected]>
  53. * XmlDecryptionTransform.cs,
  54. * XmlDsigC14NTransform.cs,
  55. * XmlDsigEnvelopedSignatureTransform.cs,
  56. * XmlDsigExcC14NTransform.cs,
  57. * XmlDsigXsltTransform.cs: Replace Type.GetType("x") into typeof(x)
  58. [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
  59. 2008-05-25 Sebastien Pouliot <[email protected]>
  60. * XmlDecryptionTransform.cs,
  61. * XmlDsigBase64Transform.cs,
  62. * XmlDsigC14NTransform.cs,
  63. * XmlDsigEnvelopedSignatureTransform.cs,
  64. * XmlDsigExcC14NTransform.cs,
  65. * XmlDsigXPathTransform.cs,
  66. * XmlDsigXsltTransform.cs,
  67. * XmlLicenseTransform.cs: Don't use lock(this). In fact remove locking
  68. since the worse that can happen is two copies of the same data.
  69. [Found using Gendarme]
  70. 2008-01-12 Sebastien Pouliot <[email protected]>
  71. * ReferenceList.cs: Avoid infinite recursion when setting [].
  72. Found by Gendarme.
  73. * XmlDsigXPathTransform.cs: Fix direct comparison with NaN. Found
  74. by Gendarme.
  75. 2007-11-13 Atsushi Enomoto <[email protected]>
  76. * XmlDsigExcC14NTransform.cs : removed extra [ComVisible].
  77. 2007-03-22 Atsushi Enomoto <[email protected]>
  78. * Transform.cs, XmlDsigC14NTransform.cs, XmlDsigExcC14NTransform.cs :
  79. handle PropagatedNamespaces.
  80. 2007-02-01 Atsushi Enomoto <[email protected]>
  81. * SignedXml.cs : for internal URI (#blah) resolution, use
  82. GetIdElement() so that any derived class which overrides this
  83. method could resolve the reference correctly.
  84. 2007-01-25 Atsushi Enomoto <[email protected]>
  85. * SignedXml.cs : for DataObject, copy namespaces in Data into Object
  86. element itself. I haven't solved the puzzle on why it is needed
  87. though.
  88. 2007-01-23 Atsushi Enomoto <[email protected]>
  89. * DataObject.cs : it should not append created DataObject element to
  90. the owner document. It affects on XPath selection, though currently
  91. SignedXml.GetReferenceHash() is bogus so I cannot add meaningful
  92. tests for it.
  93. 2007-01-22 Atsushi Enomoto <[email protected]>
  94. * SignedInfo.cs : removed incorrect CanonicalizationMethodObject
  95. implementation.
  96. * EncryptedReference.cs : added exc-c14n support in LoadXml().
  97. 2007-01-17 Atsushi Enomoto <[email protected]>
  98. * XmlDsigExcC14NTransform.cs :
  99. re-imported from XmlDsigC14NTransform.cs.
  100. 2007-01-12 Atsushi Enomoto <[email protected]>
  101. * SignedXml.cs : when there is an envelope document and no referenced
  102. DataObject was found, then look for the target element from the
  103. envelope.
  104. 2007-01-12 Atsushi Enomoto <[email protected]>
  105. * DataObject.cs : don't clear attributes or children unnecessarily.
  106. 2007-01-12 Atsushi Enomoto <[email protected]>
  107. * SignedXml.cs : actually ComputeSignature() itself does not raise
  108. silly exception. It always use CryptographicException.
  109. Added another check; malformed reference object.
  110. 2007-01-12 Atsushi Enomoto <[email protected]>
  111. * SignedXml.cs : ComputeSignature() should check empty key.
  112. 2006-10-11 Atsushi Enomoto <[email protected]>
  113. * SignedXml.cs : when SigningMethod does not match the algorithm that
  114. the key actually supports, it raises an error.
  115. 2006-09-22 Atsushi Enomoto <[email protected]>
  116. * EncryptedXml.cs : use Padding member instead of const ISO10126 (though
  117. I doubt it should be there). Use it in DecryptData().
  118. 2006-09-21 Atsushi Enomoto <[email protected]>
  119. * EncryptedXml.cs : implement orthodox padding on encryption.
  120. 2006-09-21 Atsushi Enomoto <[email protected]>
  121. * EncryptedXml.cs :
  122. Handle orthodox padding (xmlenc spec section 5.2). However, like
  123. EncryptedXmlSample1, it might not exist, so make it optional.
  124. 2006-09-21 Atsushi Enomoto <[email protected]>
  125. * EncryptedXml.cs : True fix for DecryptData(). It indeed uses block size
  126. (or possibly IV size) in Transform(), but only for stripping the heading
  127. n bytes garbage.
  128. 2006-09-20 Atsushi Enomoto <[email protected]>
  129. * SignedXml.cs : overwrite my fix with Gert's patch on #79454 to make it
  130. possible to handle multiple certificates.
  131. 2006-09-20 Atsushi Enomoto <[email protected]>
  132. * SignedXml.cs : handle KeyInfoX509Data in GetPublicKey(). Fixed #1 of
  133. bug #79454.
  134. 2006-09-07 Atsushi Enomoto <[email protected]>
  135. * EncryptedXml.cs : DecryptData() should not pass block size to
  136. Transform() as the index.
  137. 2006-09-06 Atsushi Enomoto <[email protected]>
  138. * CipherReference.cs, EncryptedReference.cs : unify duplicate code.
  139. Remove incorrect name check in the latter class so that it works
  140. for DataReference and KeyReference as well.
  141. 2006-05-31 Sebastien Pouliot <[email protected]>
  142. * KeyInfoClause.cs: Under 2.0 the ctor is protected.
  143. * Transform.cs: Under 2.0 the ctor is protected. Enable the use of
  144. XmlSecureResolver when the security manager is active.
  145. 2006-01-30 Atsushi Enomoto <[email protected]>
  146. * XmlDsigEnvelopedSignatureTransform.cs :
  147. It should not remove nodes in another XmlNodeList while its
  148. iterator is in active use. This is exposed by the recent
  149. XmlNodeList change.
  150. 2005-09-27 Sebastien Pouliot <[email protected]>
  151. * KeyInfoX509Data.cs: Remove old 2.0 specific check.
  152. * XmlDsigXPathTransform.cs: Remove old 2.0 specific check. Return
  153. empty node list of the XmlDocument is null (fixed tests case for 2.0
  154. RC).
  155. 2005-05-09 Sebastien Pouliot <[email protected]>
  156. * EncryptionProperties.cs: Added [IndexerName] attribute to rename
  157. "this" from Item to ItemOf. Added missing Item(int) method.
  158. * ReferenceList.cs: Added [IndexerName] attribute to rename "this"
  159. from Item to ItemOf.
  160. 2005-05-04 Sebastien Pouliot <[email protected]>
  161. * SignedXml.cs: Return an empty (not null) KeyInfo by default and
  162. don't throw a CryptographicException in CheckSignature (both NET_2_0).
  163. * KeyInfoRetrievalMethod.cs: Don't include an empty URI attribute
  164. in the XML output for NET_2_0.
  165. * XmlDsigXPathTransform.cs: Throw an XPathException in NET_2_0 if no
  166. xpath expression has been supplied to the transform.
  167. 2005-05-03 Sebastien Pouliot <[email protected]>
  168. * XmlDsigXsltTransform.cs: Fixed 2 test cases (that nows throws
  169. ArgumentNullException) in 2.0.
  170. 2005-05-02 Sebastien Pouliot <[email protected]>
  171. * SignedXml.cs: Throw ArgumentNullException in AddObject and
  172. AddReference methods in 2.0.
  173. * XmlDsigC14NTransform.cs: Throw ArgumentException when loading from
  174. an unknown type in 2.0 (it was simply ignored in 1.x).
  175. 2005-04-26 Sebastien Pouliot <[email protected]>
  176. * KeyInfoX509Data.cs: Fixed to work biwht unit tests on both NET_1_1
  177. and NET_2_0 (except for obvious beta2 bugs). ArraList are now only
  178. created when required.
  179. 2005-04-25 Sebastien Pouliot <[email protected]>
  180. * EncryptedData.cs: Avoid re-creating collection object on load.
  181. * EncryptedKey.cs: Fix compiler warning (unused variables).
  182. * EncryptedType.cs: Remove set on EncryptionProperties property.
  183. * IRelDecryptor.cs: New. Interface for XrML support.
  184. * SymmetricKeyWrap.cs: Comment unused static method Xor(byte[],int).
  185. * XmlDecryptionTransform.cs: Fix compiler warning (unused variable).
  186. * XmlDsigEnvelopedSignatureTransform.cs: Fix compiler warning.
  187. * XmlLicenseTransform.cs: New. Class for XrML support.
  188. 2005-04-24 Sebastien Pouliot <[email protected]>
  189. * SignedInfo.cs: Added [ComVisible (false)] to new property.
  190. * SignedXml.cs: Added [ComVisible (false)] to new properties and
  191. methods.
  192. * ReferenceList.cs: Fixed members signatures for beta2.
  193. * Reference.cs: Added [ComVisible (false)] to new set_TransformChain.
  194. * EncryptedType.cs: Fix compilation with EncryptionPropertyCollection
  195. changes.
  196. * DataObject.cs: Fix compilation warnings.
  197. * EncryptedKey.cs: Fix compilation with ReferenceList and
  198. EncryptionPropertyCollection changes.
  199. * EncryptionProperties.cs: Class has been renamed to
  200. EncryptionPropertyCollection.
  201. * Transform.cs: Added [ComVisible (false)] to new properties and
  202. methods.
  203. * EncryptedXml.cs: Changed XmlEncRSA1_5Url to XmlEncRSA15Url.
  204. * KeyInfoRetrievalMethod.cs: Added [ComVisible (false)] to Type
  205. property.
  206. * KeyInfoX509Data.cs: Added [ComVisible (false)] to AddSubjectKeyId
  207. (string) method and implemented it.
  208. * EncryptedData.cs: Changed EncryptionProperties to new
  209. EncryptionPropertyCollection.
  210. * XmlDsigC14NTransform.cs: Added [ComVisible (false)] to
  211. GetDigestedOutput method and added a basic implementation.
  212. * X509IssuerSerial.cs: IssuerName and SerialNumber are now properties.
  213. 2005-04-23 Sebastien Pouliot <[email protected]>
  214. * EncryptedXml.cs, SignedXml.cs: Changed X509CertificateEx to
  215. X509Certificate2 to match beta2.
  216. 2005-04-04 Atsushi Enomoto <[email protected]>
  217. * XmlSignatureStreamReader.cs : new file. Handles Stream to rip CR off.
  218. * XmlDsigXPathTransform.cs,
  219. XmlDecryptionTransform.cs,
  220. XmlDsigC14NTransform.cs,
  221. XmlDsigEnvelopedSignatureTransform.cs,
  222. XmlDsigXsltTransform.cs : use XmlSignatureStreamReader for Streams.
  223. 2004-09-16 Sebastien Pouliot <[email protected]>
  224. * Signature.cs: Fixed Xmldsig and broken unit tests.
  225. * SignedXml.cs: Fixed warning (level 4) for unused variable.
  226. * XmlDsigEnvelopedSignatureTransform.cs: Fixed warning (l4) for unused
  227. variable.
  228. 2004-09-04 Tim Coleman <[email protected]>
  229. * XmlDecryptionTransform.cs:
  230. Implement rudimentary xpointer support for Except URIs.
  231. 2004-09-03 Tim Coleman <[email protected]>
  232. * EncryptedXml.cs: Add support for RSA for key formatting
  233. * Reference.cs: Include XmlDecryptionTransform
  234. * SignedXml.cs:
  235. Set the EncryptedKey on the XmlDecryptionTransform when
  236. loading XML
  237. * XmlDecryptionTransform.cs:
  238. Clean up decryption transformation to work without ugly hack.
  239. * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
  240. Implement this class based on XmlDsigC14N
  241. * XmlSignature.cs: Add namespaces for various classes.
  242. * KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
  243. Remove TODO attributes from implemented methods.
  244. * KeyInfoName.cs: Put #if NET_2_0 markers in
  245. * Transform.cs: Implement GetDigestedOutput
  246. 2004-09-02 Tim Coleman <[email protected]>
  247. * CipherReference.cs: Add XmlDecryptionTransform for 2.0
  248. * EncryptedType.cs: Fix type initialization to conform to .NET
  249. * EncryptedXml.cs:
  250. Add support for RSA key decryption and "cloning" for Transform
  251. * KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
  252. Add 2.0 stubs
  253. * Signature.cs:
  254. Create internal GetXml function if we already have a doc
  255. * SignedXml.cs: Fix the transformation when we get an XmlDocument out
  256. * XmlDecryptionTransform.cs: Implemented Xml Decryption
  257. * XmlSignature.cs: Add namespace for Xml Decryption
  258. 2004-08-31 Tim Coleman <[email protected]>
  259. * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
  260. Add new stub classes
  261. * SignedXml.cs Transform.cs:
  262. New methods for 2.0
  263. * EncryptedXml.cs SymmetricKeyWrap.cs:
  264. Get symmetric key wrap to work for AES keys.
  265. 2004-08-30 Tim Coleman <[email protected]>
  266. * EncryptedXml.cs: Implement lots of XML Encryption code.
  267. * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
  268. * XmlSignature.cs: Add NET_2_0 check around EncryptedKey
  269. 2004-08-30 Atsushi Enomoto <[email protected]>
  270. * KeyInfo.cs : NET_1_1 build fix.
  271. 2004-08-29 Tim Coleman <[email protected]>
  272. * EncryptedKey.cs: Fix element name when generating XML.
  273. * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
  274. * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
  275. * KeyInfoName.cs: Add missing constructor
  276. * SymmetricKeyWrap.cs: Add untested TripleDES key wrap
  277. algorithms for encryption/decryption
  278. * XmlSignature.cs: Add EncryptedKey constant.
  279. * EncryptedData.cs: Add .NET 2.0 method stubs.
  280. 2004-07-20 Atsushi Enomoto <[email protected]>
  281. * Signature.cs : Fixed NextElementPos() that incorrectly examined
  282. node matching.
  283. 2004-07-07 Sebastien Pouliot <[email protected]>
  284. * EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
  285. XmlEncElementContentUrl.
  286. * X509IssuerSerial.cs: Make constructor internal so it doesn't show up
  287. in corcompare results for NET_2_0 profile.
  288. 2004-06-17 Sebastien Pouliot <[email protected]>
  289. * KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
  290. undocumented structure (now documented, and public, in Fx 2.0).
  291. * X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
  292. internal before that.
  293. 2004-06-10 Gert Driesen <[email protected]>
  294. * SignedXml.cs: API signature fixes
  295. 2004-06-04 Atsushi Enomoto <[email protected]>
  296. * SignedXml.cs : Complete fix for bug #59545. Support #xpointer(id()).
  297. Namespace fixup is required when signing prefixed xml.
  298. 2004-06-04 Atsushi Enomoto <[email protected]>
  299. * SignedXml.cs : Fix for bug #59545. Handle #xpointer(/) as document.
  300. 2004-05-31 Atsushi Enomoto <[email protected]>
  301. * SignedXml.cs : partial fix for bug #59165 that does not output
  302. namespace that conflicts with element's namespace.
  303. 2004-05-13 Sebastien Pouliot <[email protected]>
  304. * SignedXml.cs: Update TODO informations.
  305. 2004-05-13 Atsushi Enomoto <[email protected]>
  306. * XmlDsigBase64Transform.cs :
  307. LoadInput() should retrieve all the descendants.
  308. GetOutput() should handle nodes without digging into child nodes.
  309. 2004-05-05 Atsushi Enomoto <[email protected]>
  310. * SignedXml.cs,
  311. Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
  312. * XmlDsigBase64Transform.cs : Should not output the content of the
  313. selected element nodes. Put text content only those text nodes are
  314. in the node list.
  315. * XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
  316. * XmlDsigXsltTransform.cs : Use XmlResolver to load document and
  317. to transform. Throw null reference exception explicitly when
  318. the input was not loaded.
  319. 2004-04-02 Lluis Sanchez Gual <[email protected]>
  320. * XmlDsigEnvelopedSignatureTransform.cs, XmlDsigXPathTransform.cs,
  321. XmlDsigXsltTransform.cs: Fixed build for net_1_0 profile.
  322. 2004-03-30 Sebastien Pouliot <[email protected]>
  323. * Reference.cs: Changed code to use CryptoConfig to create transforms.
  324. This is "the" way to do it (e.g. to allow new transforms to be added)
  325. but cause problems when using VS.NET for debugging. Old code is still
  326. present, but commented, for that cause.
  327. 2004-03-27 Atsushi Enomoto <[email protected]>
  328. * SignedXml.cs : namespace nodes also should be supplied for enveloped
  329. objects.
  330. * KeyInfoRetrievalMethod.cs : Keep input element as well as others.
  331. 2004-03-27 Atsushi Enomoto <[email protected]>
  332. * SignedXml.cs : XPath transformation output is not type of Stream.
  333. Fix to support them by canonicalizing it.
  334. 2004-03-27 Atsushi Enomoto <[email protected]>
  335. * XmlDsigXsltTransform.cs : GetOutput() now just returns
  336. transformation output.
  337. 2004-03-27 Atsushi Enomoto <[email protected]>
  338. * SignedXml.cs : Added xmlns support for Manifest.
  339. 2004-03-26 Sebastien Pouliot <[email protected]>
  340. * Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
  341. This should help us to validate more tests from the Phaos suite.
  342. Note: Microsoft doesn't support this and we only support it for
  343. verification (not signature generation).
  344. * SignedXml.cs: Added support for Manifest, including recursive
  345. manifests. Made some changes to reuse existing code as much as
  346. possible. Better support for local/remote files - but requires
  347. catching an Uri exception for local files :-(.
  348. * XmlSignature.cs: Added constants for Manifest element and URI.
  349. 2004-03-26 Atsushi Enomoto <[email protected]>
  350. * SignedXml.cs :
  351. - Use specified (or default) XmlResolver to get external resource,
  352. instead of using WebRequest directly. Also modified it easier.
  353. - ApplyTransform() : Clone only when it is required. Handle
  354. transformation output other than Stream.
  355. - Even if applicable key was not found in GetHash(), don't throw
  356. crypto exception every time and just return false (MS does it).
  357. Throw an exception only when no key was specified as KeyInfo.
  358. * XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
  359. incorrectly set InputTypes internally.
  360. * XmlDsigXPathTransform.cs : Context namespace nodes in loaded
  361. transform parameter (i.e. <XPath>..</XPath>) should be registered
  362. to XsltContext. Otherwise prefix binding error occurs.
  363. Just filter attribute node, instead of filtering attribute children.
  364. 2004-03-25 Sebastien Pouliot <[email protected]>
  365. * SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
  366. false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
  367. -retrieval-method.xml in the Phaos test suite.
  368. 2004-03-24 Atsushi Enomoto <[email protected]>
  369. * Reference.cs, Signature.cs : They should keep input element and hence
  370. keep namespace context nodes on LoadXml() as same as SignedInfo.
  371. * SignedXml.cs : Fixed SignedInfoTransformed() to fill context
  372. namespace nodes into the input document (unlike other classes, there
  373. seems no other way to keep ns-nodes here).
  374. Now some of W3C phaos xmldsig test passes.
  375. 2004-03-23 Atsushi Enomoto <[email protected]>
  376. * SignedInfo.cs : It holds input element and directly returns it
  377. unless the properties are not set.
  378. Throw CryptographicException when Reference is empty *and* GetXml()
  379. is *created*. (when just returning input element, no exception is
  380. thrown).
  381. 2004-03-23 Atsushi Enomoto <[email protected]>
  382. * DataObject.cs : It now holds element instead of each parameters.
  383. Avoid loading element content to different document unless its
  384. properties were modified (to keep namespace node context).
  385. 2004-03-20 Sebastien Pouliot <[email protected]>
  386. * SignedXml.cs: Removed unused (and commented) ComputeHash method.
  387. 2004-03-19 Atsushi Enomoto <[email protected]>
  388. * XmlDsigXPathTransform.cs : just found stupid bug.
  389. 2004-03-19 Sebastien Pouliot <[email protected]>
  390. * SignedXml.cs: Lot of small changes to complete TODOs and to match
  391. the new unit tests.
  392. 2004-03-17 Sebastien Pouliot <[email protected]>
  393. * SignedXml.cs: The old method was working for creating signature -
  394. so it was reintroduced for (only) this case.
  395. 2004-03-17 Atsushi Enomoto <[email protected]>
  396. * SignedXml.cs : the result from enveloped signature transform should
  397. be canonicalized before getting its hash.
  398. * XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
  399. if the node is Signature itself it is not allowed.
  400. PreserveWhitespace is required.
  401. 2004-03-16 Sebastien Pouliot <[email protected]>
  402. * SignedXml.cs: Changed (again). This time we use the Stream when
  403. loading the document. We now pass 14 out of 15 of the Merlin's
  404. tests (including one that MS fails). The only failing test is the
  405. one that use the EnvelopedTransform (unfinished).
  406. 2004-03-16 Sebastien Pouliot <[email protected]>
  407. * SignedXml.cs: Commented my last changes to SignedXml as it made other
  408. unis tests fail (in the c14n-izer).
  409. 2004-03-16 Atsushi Enomoto <[email protected]>
  410. * XmlDsigNodeList.cs : removed BOM from code file.
  411. 2004-03-16 Atsushi Enomoto <[email protected]>
  412. * XmlDsigNodeList.cs : added.
  413. * XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
  414. * XmlDsigEnvelopedSignatureTransform.cs :
  415. Implemented GetOutput(). However, it is totally MS behavior
  416. dependent and not based on the spec (we can reimplement it based on
  417. improved XmlDsigXPathTransform).
  418. * SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
  419. 2004-03-15 Sebastien Pouliot <[email protected]>
  420. * SignedXml.cs: Now use the original Signature element before applying
  421. the C14N transformation. Added a check for null in LoadXml.
  422. 2004-03-14 Atsushi Enomoto <[email protected]>
  423. * XmlDsigXPathTransform.cs : implemented GetOutput() (with some
  424. internal XPath context classes).
  425. 2004-03-13 Atsushi Enomoto <[email protected]>
  426. * XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
  427. and LoadInput() should just load transformed document.
  428. Transformation should be done in GetOutput() because either of the
  429. stylesheet or input can be loaded in prior. Adjusted code format.
  430. 2004-03-12 Sebastien Pouliot <[email protected]>
  431. * Signature.cs: KeyInfo isn't required in schema.
  432. * SignedInfo.cs: Added support for missing HMACOutputLength.
  433. * SignedXml.cs: Added support to download a reference (experimental).
  434. Now throw exception for unknown hash algorithm or canonicalization
  435. methods. Changed GetPublicKey to iterate all available keys (not just
  436. the first one).
  437. 2004-03-09 Atsushi Enomoto <[email protected]>
  438. * KeyInfo.cs : Attribute Id was not handlded.
  439. * KeyInfoX509Data.cs : all array members return null when there are
  440. no such contents. Just find child elements, not descendants.
  441. * SignedXml.cs : key is not always required when CheckSignature() is
  442. called.
  443. * XmlDsigXsltTransform.cs : LoadInput should allow node list.
  444. * XmlSignature.cs : added GetChildElements().
  445. 2004-03-09 Atsushi Enomoto <[email protected]>
  446. * KeyInfoX509Data.cs : trivial local var name fix.
  447. 2004-03-09 Atsushi Enomoto <[email protected]>
  448. * KeyInfoX509Data.cs,
  449. Reference.cs,
  450. SignedInfo.cs,
  451. XmlSignature.cs : GetElementsByTagName() should be eliminated or
  452. at least should use namespace URI.
  453. 2004-03-04 Atsushi Enomoto <[email protected]>
  454. * KeyInfo.cs :
  455. Fixed LoadXml() to skip text nodes as MS.NET does.
  456. Uncommented out RSAKeyValue.
  457. * Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
  458. that incorrectly acquires descendants. Throw CryptographicException
  459. if required elements were not found.
  460. * Transform.cs : added internal GetResolver().
  461. * XmlDsigXPathTransform.cs,
  462. XmlDsigXsltTransform.cs : use XmlResolver.
  463. 2004-02-19 Tim Coleman <[email protected]>
  464. * SymmetricKeyWrap.cs:
  465. Add AES Key Wrap
  466. * EncryptedXml.cs:
  467. Add calls to SymmetricKeyWrap
  468. 2004-02-11 Sebastien Pouliot <[email protected]>
  469. * Reference.cs: Added LoadInnerXml to transforms. Removed unused
  470. variable.
  471. * Transform.cs: Import GetInnerXml in GetXml.
  472. * XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
  473. allocations.
  474. * XmlDsigC14NTransform.cs: Added Stream support to LoadInput
  475. * XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
  476. expression and LoadInput. It nows match MS implementation but doesn't
  477. work like I think it should (but neither is MS implementation).
  478. 2004-02-10 Tim Coleman <[email protected]>
  479. * DataReference.cs EncryptedKey.cs EncryptedXml.cs
  480. * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
  481. * X509IssuerSerial.cs XmlDecryptionTransform.cs:
  482. Add new classes for Xml Encryption in 1.2
  483. * CipherData.cs CipherReference.cs EncryptedData.cs
  484. * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
  485. Change NamespaceURI reference to EncryptedXml class.
  486. Make compliant with 1.2
  487. * XmlEncryption.cs:
  488. Add new entity names.
  489. 2004-02-07 Tim Coleman <[email protected]>
  490. * CipherData.cs CipherReference.cs EncryptedData.cs
  491. * EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
  492. * EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
  493. New classes added for Xml Encryption in 1.2
  494. * KeyInfoRetrievalMethod.cs:
  495. Added Type attribute for 1.2
  496. * XmlSignature.cs:
  497. Added string constants for algorithm namespaces
  498. 2004-01-11 Sebastien Pouliot <[email protected]>
  499. * SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
  500. Resolver property.
  501. * Transform.cs: Fixed class signature (for 1.1+) by adding public to
  502. Resolver property.
  503. 2003-12-14 Sebastien Pouliot <[email protected]>
  504. * SignedXml.cs: Now load the public key when verifying (bug #52084)
  505. and can find an element by it's Id when Id isn't defined in DTD or XSD.
  506. 2003-07-27 Sebastien Pouliot <[email protected]>
  507. * XmlSignature.cs: Changed USE_VERSION_1_0 for NET_1_0.
  508. 2003-07-24 Sebastien Pouliot <[email protected]>
  509. * XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
  510. from Aleksey Sanin.
  511. 2003-06-19 Nick Drochak <[email protected]>
  512. * DSAKeyValue.cs:
  513. * RSAKeyValue.cs: Work around for mcs? bug 45127.
  514. 2003-06-11 Sebastien Pouliot <[email protected]>
  515. * SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
  516. * Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.
  517. 2003-05-25 Sebastien Pouliot <[email protected]>
  518. * XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
  519. to match framework 1.1 (this was a bug in framework 1.0).
  520. 2003-05-10 Sebastien Pouliot <[email protected]>
  521. * SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
  522. documentation (no public declaration).
  523. * Transform.cs: Added property XmlResolver Resolver as per framework 1.1
  524. documentation (no public declaration).
  525. 2003-03-03 Sebastien Pouliot <[email protected]>
  526. * DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
  527. XML generation).
  528. * RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
  529. XML generation).
  530. * XmlDsigBase64Transform.cs: Fixed problem when using XPath.
  531. 2003-03-02 Sebastien Pouliot <[email protected]>
  532. * DSAKeyValue.cs: New XML generation is commented. Old string technique
  533. did a better job to match MS implementation.
  534. * DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
  535. * KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
  536. * KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
  537. * KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
  538. * KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
  539. * KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
  540. * RSAKeyValue.cs: New XML generation is commented. Old string technique
  541. did a better job to match MS implementation.
  542. * Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
  543. * Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
  544. * SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
  545. * SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
  546. * Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
  547. * XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
  548. * XmlDsigXPathTransform.cs: Added missing Algorithm URL.
  549. * XmlSignature.cs: New. Private contants (construct similar to WSE).
  550. 2003-02-19 Sebastien Pouliot <[email protected]>
  551. * All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
  552. will reflect reality).
  553. 2003-01-17 Sebastien Pouliot <[email protected]>
  554. * KeyInfo.cs: Changed some protected declaration to private.
  555. * KeyInfoName.cs: Changed some protected declaration to private.
  556. * KeyInfoNode.cs: Changed some protected declaration to private.
  557. * KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
  558. * KeyInfoX509Data.cs: Changed some protected declaration to private.
  559. * Transform.cs: Changed some protected declaration to private.
  560. * XmlDsigBase64Transform.cs: Changed some protected declaration to private.
  561. * XmlDsigC14NTransform.cs: Changed some protected declaration to private.
  562. * XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
  563. * XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
  564. * XmlDsigXPathTransform.cs: Changed some protected declaration to private.
  565. * XmlDsigXsltTransform.cs: Changed some protected declaration to private.
  566. 2002-11-28 Sebastien Pouliot <[email protected]>
  567. * TODOAttribute.cs: New. Still much to do ;-)
  568. * XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
  569. functionnal.
  570. * XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
  571. functionnal.
  572. 2002-11-20 Sebastien Pouliot <[email protected]>
  573. * DataObject.cs: New. Complete implementation.
  574. * DSAKeyValue.cs: New. Complete implementation.
  575. * KeyInfo.cs: New. Complete implementation.
  576. * KeyInfoClause.cs: New. Abstract class (complete).
  577. * KeyInfoName.cs: New. Complete implementation.
  578. * KeyInfoNode.cs: New. Complete implementation.
  579. * KeyInfoRetrievalMethod.cs: New. Complete implementation.
  580. * KeyInfoX509Data.cs: New. Complete implementation.
  581. * Reference.cs: New. Incomplete implementation.
  582. * RSAKeyValue.cs: New. Complete implementation.
  583. * Signature.cs: New. Almost complete implementation - returned
  584. XML isn't exactly like the MS implementation.
  585. * SignedInfo.cs: New. Complete except SignatureLength.
  586. * SignedXml.cs: New. Minimal implementation (only enveloped signatures).
  587. Still many TODO!
  588. * Transform.cs: New. Abstract class (complete).
  589. * TransformChain.cs: New. Complete implementation.
  590. * XmlDsigBase64Transform.cs: New. Stub + basic logic.
  591. * XmlDsigC14NTransform.cs: New. Stub + basic logic.
  592. * XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
  593. * XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
  594. * XmlDsigXPathTransform.cs: New. Stub + basic logic.
  595. * XmlDsigXsltTransform.cs: New. Stub + basic logic.