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