Initializes a new instance of the AsymmetricCrypter class. Encryption will be done by generating a "session key" that will be encrypted using the public key of the receiver. Then the message will be encrypted using SupportedStreamAlgorithms algorithm with the encrypted key. To decrypt the message, the receiver will decrypt the session key (pre-pended to the message, using her private key. Then she will use the session key in clear to decrypt the message using SupportedStreamAlgorithms algorithm.

Namespace: LLCryptoLib.Crypto
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public AsymmetricCrypter(
	SupportedStreamAlgorithms encryptionAlgorithm
)
Visual Basic
Public Sub New ( _
	encryptionAlgorithm As SupportedStreamAlgorithms _
)
Visual C++
public:
AsymmetricCrypter(
	SupportedStreamAlgorithms encryptionAlgorithm
)

Parameters

encryptionAlgorithm
Type: LLCryptoLib.Crypto..::..SupportedStreamAlgorithms
The symmetric encryption algorithm.

See Also