summary refs log tree commit diff
path: root/crypto/src/tls/TlsPsk.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-07-25 19:58:02 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-07-25 19:58:02 +0700
commitd8187def99004d5be735c9694c4f08f7e5fa0221 (patch)
treeec8b18e46f850f887fe2a646bad2b6a24d35b782 /crypto/src/tls/TlsPsk.cs
parentFix Truncate method (diff)
downloadBouncyCastle.NET-ed25519-d8187def99004d5be735c9694c4f08f7e5fa0221.tar.xz
TLS 1.3 client API for external PSKs
Diffstat (limited to 'crypto/src/tls/TlsPsk.cs')
-rw-r--r--crypto/src/tls/TlsPsk.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsPsk.cs b/crypto/src/tls/TlsPsk.cs
new file mode 100644
index 000000000..c3aac3297
--- /dev/null
+++ b/crypto/src/tls/TlsPsk.cs
@@ -0,0 +1,15 @@
+using System;
+
+using Org.BouncyCastle.Tls.Crypto;
+
+namespace Org.BouncyCastle.Tls
+{
+    public interface TlsPsk
+    {
+        byte[] Identity { get; }
+
+        TlsSecret Key { get; }
+
+        int PrfAlgorithm { get; }
+    }
+}