// // System.Security.Cryptography AsymmetricKeyExchangeFormatter Class implementation // // Authors: // Thomas Neidhart (tome@sbox.tugraz.at) // using System; using System.Security; namespace System.Security.Cryptography { /// /// Abstract base class for all asymmetric key exchange formatter. /// Available derived classes: /// RSAOAEPKeyExchangeFormatter, RSAPKCS1KeyExchangeFormatter /// public abstract class AsymmetricKeyExchangeFormatter { /// /// constructor, no idea why it is here (abstract class) :-) /// just for compatibility with MS /// public AsymmetricKeyExchangeFormatter() { } /// /// XML string containing the parameters of an asymmetric key exchange operation /// public abstract string Parameters {get;} /// /// create encrypted key exchange data /// public abstract byte[] CreateKeyExchange(byte[] data); /// /// create encrypted key exchange data /// public abstract byte[] CreateKeyExchange(byte[] data, Type symAlgType); /// /// set the private key /// public abstract void SetKey(AsymmetricAlgorithm key); } // AsymmetricKeyExchangeFormatter } // System.Security.Cryptography