blob: 42c2aa4bcca162b8e93e671ae7c69898b1561b4a (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
|
using System;
using System.IO;
using Org.BouncyCastle.Tls.Crypto;
namespace Org.BouncyCastle.Tls
{
/// <summary>A generic interface for key exchange implementations in (D)TLS.</summary>
public interface TlsKeyExchange
{
void Init(TlsContext context);
/// <exception cref="IOException"/>
void SkipServerCredentials();
/// <exception cref="IOException"/>
void ProcessServerCredentials(TlsCredentials serverCredentials);
/// <exception cref="IOException"/>
void ProcessServerCertificate(Certificate serverCertificate);
bool RequiresServerKeyExchange { get; }
/// <exception cref="IOException"/>
byte[] GenerateServerKeyExchange();
/// <exception cref="IOException"/>
void SkipServerKeyExchange();
/// <exception cref="IOException"/>
void ProcessServerKeyExchange(Stream input);
short[] GetClientCertificateTypes();
/// <exception cref="IOException"/>
void SkipClientCredentials();
/// <exception cref="IOException"/>
void ProcessClientCredentials(TlsCredentials clientCredentials);
/// <exception cref="IOException"/>
void ProcessClientCertificate(Certificate clientCertificate);
/// <exception cref="IOException"/>
void GenerateClientKeyExchange(Stream output);
/// <exception cref="IOException"/>
void ProcessClientKeyExchange(Stream input);
bool RequiresCertificateVerify { get; }
/// <exception cref="IOException"/>
TlsSecret GeneratePreMasterSecret();
}
}
|