2 // System.Security.Cryptography SignatureDescription Class implementation
\r
5 // Thomas Neidhart (tome@sbox.tugraz.at)
\r
7 // LAMESPEC: documentation of this class is completely missing in the sdk doc
\r
8 // TODO: Implement AsymmetricSignatureFormatter & AsymmetricSignatureDeformatter methods
\r
11 using System.Security;
\r
13 namespace System.Security.Cryptography {
\r
16 /// LAMESPEC: no sdk doc available for this class by the time of beta 2
\r
19 public class SignatureDescription {
\r
20 private string _DeformatterAlgorithm;
\r
21 private string _DigestAlgorithm;
\r
22 private string _FormatterAlgorithm;
\r
23 private string _KeyAlgorithm;
\r
26 /// LAMESPEC: no idea what param el should do??
\r
28 public SignatureDescription (SecurityElement el) {
\r
30 throw new CryptographicException();
\r
35 /// LAMESPEC: what to do if setting null values?
\r
37 public string DeformatterAlgorithm {
\r
39 return _DeformatterAlgorithm;
\r
42 _DeformatterAlgorithm = value;
\r
47 /// LAMESPEC: what to do if setting null values?
\r
49 public string DigestAlgorithm {
\r
51 return _DigestAlgorithm;
\r
54 _DigestAlgorithm = value;
\r
59 /// LAMESPEC: what to do if setting null values?
\r
61 public string FormatterAlgorithm {
\r
63 return _FormatterAlgorithm;
\r
66 _FormatterAlgorithm = value;
\r
71 /// LAMESPEC: what to do if setting null values?
\r
73 public string KeyAlgorithm {
\r
75 return _KeyAlgorithm;
\r
78 _KeyAlgorithm = value;
\r
83 public virtual AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key)
\r
90 /// Create the hash algorithm assigned with this object
\r
92 public virtual HashAlgorithm CreateDigest()
\r
94 return HashAlgorithm.Create(_DigestAlgorithm);
\r
98 public virtual AsymmetricSignatureFormatter CreateFormatter(AsymmetricAlgorithm key)
\r
104 } // SignatureDescription
\r
106 } // System.Security.Cryptography
\r