diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-12 15:15:36 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-12 15:15:36 +0700 |
commit | 68c795fe81277f73aeb90d8ad4c6f4305f32c906 (patch) | |
tree | 59643344aafef91bbd4c4a3a7973deba3d837a00 /crypto/src/tls/TlsKeyExchangeFactory.cs | |
parent | TLS test tweaks (diff) | |
download | BouncyCastle.NET-ed25519-68c795fe81277f73aeb90d8ad4c6f4305f32c906.tar.xz |
Port of new TLS API from bc-java
Diffstat (limited to 'crypto/src/tls/TlsKeyExchangeFactory.cs')
-rw-r--r-- | crypto/src/tls/TlsKeyExchangeFactory.cs | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsKeyExchangeFactory.cs b/crypto/src/tls/TlsKeyExchangeFactory.cs new file mode 100644 index 000000000..59b5327ab --- /dev/null +++ b/crypto/src/tls/TlsKeyExchangeFactory.cs @@ -0,0 +1,59 @@ +using System; +using System.IO; + +using Org.BouncyCastle.Tls.Crypto; + +namespace Org.BouncyCastle.Tls +{ + /// <summary>Interface for a key exchange factory offering a variety of specific algorithms.</summary> + public interface TlsKeyExchangeFactory + { + /// <exception cref="IOException"/> + TlsKeyExchange CreateDHKeyExchange(int keyExchange); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateDHanonKeyExchangeClient(int keyExchange, TlsDHGroupVerifier dhGroupVerifier); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateDHanonKeyExchangeServer(int keyExchange, TlsDHConfig dhConfig); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateDheKeyExchangeClient(int keyExchange, TlsDHGroupVerifier dhGroupVerifier); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateDheKeyExchangeServer(int keyExchange, TlsDHConfig dhConfig); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateECDHKeyExchange(int keyExchange); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateECDHanonKeyExchangeClient(int keyExchange); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateECDHanonKeyExchangeServer(int keyExchange, TlsECConfig ecConfig); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateECDheKeyExchangeClient(int keyExchange); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateECDheKeyExchangeServer(int keyExchange, TlsECConfig ecConfig); + + /// <exception cref="IOException"/> + TlsKeyExchange CreatePskKeyExchangeClient(int keyExchange, TlsPskIdentity pskIdentity, + TlsDHGroupVerifier dhGroupVerifier); + + /// <exception cref="IOException"/> + TlsKeyExchange CreatePskKeyExchangeServer(int keyExchange, TlsPskIdentityManager pskIdentityManager, + TlsDHConfig dhConfig, TlsECConfig ecConfig); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateRsaKeyExchange(int keyExchange); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateSrpKeyExchangeClient(int keyExchange, TlsSrpIdentity srpIdentity, + TlsSrpConfigVerifier srpConfigVerifier); + + /// <exception cref="IOException"/> + TlsKeyExchange CreateSrpKeyExchangeServer(int keyExchange, TlsSrpLoginParameters loginParameters); + } +} |