2 // RSAPKCS1KeyExchangeDeformatter.cs - Handles PKCS#1 v.1.5 keyex decryption.
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
12 namespace System.Security.Cryptography {
14 public class RSAPKCS1KeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter {
18 private RandomNumberGenerator random;
20 public RSAPKCS1KeyExchangeDeformatter ()
25 public RSAPKCS1KeyExchangeDeformatter (AsymmetricAlgorithm key)
30 public override string Parameters {
32 set { param = value; }
35 public RandomNumberGenerator RNG {
36 get { return random; }
37 set { random = value; }
40 public override byte[] DecryptKeyExchange (byte[] rgbData)
43 throw new CryptographicException ();
44 return PKCS1.Decrypt_v15 (rsa, rgbData);
47 public override void SetKey (AsymmetricAlgorithm key)
53 throw new CryptographicException ();