Class CpRSAPKCS1KeyExchangeFormatter
Inherited Members
Namespace: CryptoPro.Security.Cryptography
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public class CpRSAPKCS1KeyExchangeFormatter : AsymmetricKeyExchangeFormatter
Constructors
CpRSAPKCS1KeyExchangeFormatter()
Declaration
public CpRSAPKCS1KeyExchangeFormatter()
CpRSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm)
Declaration
public CpRSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm key)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricAlgorithm | key |
Properties
Parameters
When overridden in a derived class, gets the parameters for the asymmetric key exchange.
Declaration
public override string Parameters { get; }
Property Value
Type | Description |
---|---|
string | A string in XML format containing the parameters of the asymmetric key exchange operation. |
Overrides
Methods
CreateKeyExchange(byte[])
When overridden in a derived class, creates the encrypted key exchange data from the specified input data.
Declaration
public override byte[] CreateKeyExchange(byte[] rgbData)
Parameters
Type | Name | Description |
---|---|---|
byte[] | rgbData |
Returns
Type | Description |
---|---|
byte[] | The encrypted key exchange data to be sent to the intended recipient. |
Overrides
CreateKeyExchange(byte[], Type?)
When overridden in a derived class, creates the encrypted key exchange data from the specified input data.
Declaration
public override byte[] CreateKeyExchange(byte[] rgbData, Type? symAlgType)
Parameters
Type | Name | Description |
---|---|---|
byte[] | rgbData | |
Type | symAlgType | This parameter is not used in the current version. |
Returns
Type | Description |
---|---|
byte[] | The encrypted key exchange data to be sent to the intended recipient. |
Overrides
SetKey(AsymmetricAlgorithm)
When overridden in a derived class, sets the public key to use for encrypting 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 public key. |