Class CpRSAOAEPKeyExchangeDeformatter
Inherited Members
Namespace: CryptoPro.Security.Cryptography
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public class CpRSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
Constructors
CpRSAOAEPKeyExchangeDeformatter()
Declaration
public CpRSAOAEPKeyExchangeDeformatter()
CpRSAOAEPKeyExchangeDeformatter(AsymmetricAlgorithm)
Declaration
public CpRSAOAEPKeyExchangeDeformatter(AsymmetricAlgorithm key)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricAlgorithm | key |
Properties
Parameters
When overridden in a derived class, gets or sets the parameters for the asymmetric key exchange.
Declaration
public override string? Parameters { get; set; }
Property Value
Type | Description |
---|---|
string | A string in XML format containing the parameters of the asymmetric key exchange operation. |
Overrides
Methods
DecryptKeyExchange(byte[])
When overridden in a derived class, extracts secret information from the encrypted key exchange data.
Declaration
public override byte[] DecryptKeyExchange(byte[] rgbData)
Parameters
Type | Name | Description |
---|---|---|
byte[] | rgbData |
Returns
Type | Description |
---|---|
byte[] | The secret information derived from the key exchange data. |
Overrides
SetKey(AsymmetricAlgorithm)
When overridden in a derived class, sets the private key to use for decrypting the secret information.
Declaration
public override void SetKey(AsymmetricAlgorithm key)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricAlgorithm | key | The instance of the implementation of AsymmetricAlgorithm that holds the private key. |