Class CpRSAPKCS1KeyExchangeDeformatter
Inherited Members
Namespace: CryptoPro.Security.Cryptography
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public class CpRSAPKCS1KeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
Constructors
CpRSAPKCS1KeyExchangeDeformatter()
Declaration
public CpRSAPKCS1KeyExchangeDeformatter()
CpRSAPKCS1KeyExchangeDeformatter(AsymmetricAlgorithm)
Declaration
public CpRSAPKCS1KeyExchangeDeformatter(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[] rgbIn)
Parameters
Type | Name | Description |
---|---|---|
byte[] | rgbIn |
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. |