diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-26 21:30:34 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-26 21:30:34 +0700 |
commit | b2e186669793e61ec36a50ec35c00f781fa5d3c8 (patch) | |
tree | 8bf97cc9d55b35b0cff76e19a94a1cadf3326e70 /crypto/src/tls/PskIdentity.cs | |
parent | ClientHello 'splitting' to handle PSK binders (diff) | |
download | BouncyCastle.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.cs | 5 |
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; } |