Creates a new AsymmetricEncryption instance.

Namespace: Keystone.Enigma
Assembly: Keystone.Enigma (in Keystone.Enigma.dll)

public AsymmetricEncryption( 
RSACryptoServiceProvider encryptionAlgorithm
RSACryptoServiceProvider decryptionAlgorithm 
)
This language is not supported or no code example is available.

Parameters

encryptionAlgorithm

Type: RSACryptoServiceProvider

The RSA encryption algorithm.

decryptionAlgorithm

Type: RSACryptoServiceProvider

The RSA decryption algorithm.

Exception type Condition

ArgumentException

If a null reference (Nothing in Visual Basic) is given for both of the arguments.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono