Name
AsymmetricKeyExchangeDeformatter
Synopsis
public abstract class AsymmetricKeyExchangeDeformatter { // Public Constructors public AsymmetricKeyExchangeDeformatter( ); // Public Instance Properties public abstract string Parameters{set; get; } // Public Instance Methods public abstract byte[ ] DecryptKeyExchange(byte[ ]rgb
); public abstract void SetKey(AsymmetricAlgorithmkey
); }
This is the counterpart class to
AsymmetricKeyExchangeFormatter
and is the abstract
base class which all key exchange deformatters extend.
Implementations of this class decrypt formatted key exchange data.
The DecryptKeyExchange( )
method uses a private
key to decrypt data encrypted with an implementation of the
AsymmetricKeyExchangeFormatter
class, using the
corresponding public key. The SetKey( )
method
specifies the AsymmetricAlgorithm
instance that
contains the private key. The Parameters
property
returns an XML string that describes the key exchange algorithm
represented by the implementation class.
The .NET Framework class library includes the
RSAOAEPKeyExchangeDeformatter
and
RSAPKCS1KeyExchangeDeformatter
classes, which
decrypt data that has been encrypted using the RSA algorithm after
being formatted with the Optimal Asymmetric Encryption Padding (OAEP)
or PKCS #1 schemes.
Subclasses
RSAOAEPKeyExchangeDeformatter
,
RSAPKCS1KeyExchangeDeformatter
Get Programming .NET Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.