blob: 78ee4ce669cb94791ed4bc0d6ee587c311715d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
//
// System.Security.Cryptography AsymmetricKeyExchangeDeformatter Class implementation
//
// Authors:
// Thomas Neidhart (tome@sbox.tugraz.at)
//
using System;
using System.Security;
namespace System.Security.Cryptography {
/// <summary>
/// Abstract base class for all asymmetric key exchange deformatter.
/// Available derived classes:
/// RSAOAEPKeyExchangeDeformatter, RSAPKCS1KeyExchangeDeformatter
/// </summary>
public abstract class AsymmetricKeyExchangeDeformatter {
/// <summary>
/// constructor, no idea why it is here (abstract class) :-)
/// just for compatibility with MS
/// </summary>
public AsymmetricKeyExchangeDeformatter() {
}
/// <summary>
/// XML string containing the parameters of an asymmetric key exchange operation
/// </summary>
public abstract string Parameters {get; set;}
/// <summary>
/// get secret data
/// </summary>
public abstract byte[] DecryptKeyExchange(byte[] rgb);
/// <summary>
/// set the private key
/// </summary>
public abstract void SetKey(AsymmetricAlgorithm key);
} // AsymmetricKeyExchangeDeformatter
} // System.Security.Cryptography
|