ChangeLog 31 KB

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