summary refs log tree commit diff
path: root/crypto/src/tls/PskIdentity.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-07-26 21:30:34 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-07-26 21:30:34 +0700
commitb2e186669793e61ec36a50ec35c00f781fa5d3c8 (patch)
tree8bf97cc9d55b35b0cff76e19a94a1cadf3326e70 /crypto/src/tls/PskIdentity.cs
parentClientHello 'splitting' to handle PSK binders (diff)
downloadBouncyCastle.NET-ed25519-b2e186669793e61ec36a50ec35c00f781fa5d3c8.tar.xz
More work on PSK binders
Diffstat (limited to 'crypto/src/tls/PskIdentity.cs')
-rw-r--r--crypto/src/tls/PskIdentity.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/tls/PskIdentity.cs b/crypto/src/tls/PskIdentity.cs
index 9b24527bb..082907419 100644
--- a/crypto/src/tls/PskIdentity.cs
+++ b/crypto/src/tls/PskIdentity.cs
@@ -21,6 +21,11 @@ namespace Org.BouncyCastle.Tls
             this.m_obfuscatedTicketAge = obfuscatedTicketAge;
         }
 
+        public int GetEncodedLength()
+        {
+            return 6 + m_identity.Length;
+        }
+
         public byte[] Identity
         {
             get { return m_identity; }