| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- //
- // System.Security.Cryptography SignatureDescription Class implementation
- //
- // Authors:
- // Thomas Neidhart ([email protected])
- //
- // LAMESPEC: documentation of this class is completely missing in the sdk doc
- // TODO: Implement AsymmetricSignatureFormatter & AsymmetricSignatureDeformatter methods
- using System;
- using System.Security;
- namespace System.Security.Cryptography {
-
- /// <summary>
- /// LAMESPEC: no sdk doc available for this class by the time of beta 2
- /// </summary>
- [MonoTODO]
- public class SignatureDescription {
- private string _DeformatterAlgorithm;
- private string _DigestAlgorithm;
- private string _FormatterAlgorithm;
- private string _KeyAlgorithm;
-
- /// <summary>
- /// LAMESPEC: no idea what param el should do??
- /// </summary>
- public SignatureDescription (SecurityElement el) {
- if (el == null)
- throw new CryptographicException();
- }
-
- /// <summary>
- /// LAMESPEC: what to do if setting null values?
- /// </summary>
- public string DeformatterAlgorithm {
- get {
- return _DeformatterAlgorithm;
- }
- set {
- _DeformatterAlgorithm = value;
- }
- }
- /// <summary>
- /// LAMESPEC: what to do if setting null values?
- /// </summary>
- public string DigestAlgorithm {
- get {
- return _DigestAlgorithm;
- }
- set {
- _DigestAlgorithm = value;
- }
- }
- /// <summary>
- /// LAMESPEC: what to do if setting null values?
- /// </summary>
- public string FormatterAlgorithm {
- get {
- return _FormatterAlgorithm;
- }
- set {
- _FormatterAlgorithm = value;
- }
- }
- /// <summary>
- /// LAMESPEC: what to do if setting null values?
- /// </summary>
- public string KeyAlgorithm {
- get {
- return _KeyAlgorithm;
- }
- set {
- _KeyAlgorithm = value;
- }
- }
- [MonoTODO]
- public virtual AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key)
- {
- // TODO: Implement
- return null;
- }
-
- /// <summary>
- /// Create the hash algorithm assigned with this object
- /// </summary>
- public virtual HashAlgorithm CreateDigest()
- {
- return HashAlgorithm.Create(_DigestAlgorithm);
- }
- [MonoTODO]
- public virtual AsymmetricSignatureFormatter CreateFormatter(AsymmetricAlgorithm key)
- {
- // TODO: Implement
- return null;
- }
-
- } // SignatureDescription
-
- } // System.Security.Cryptography
|