using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls { // Token: 0x02001520 RID: 5408 [Token(Token = "0x2001520")] [StructLayout(3)] public class BasicTlsPskIdentity : TlsPskIdentity { // Token: 0x06009002 RID: 36866 RVA: 0x001FF0E4 File Offset: 0x001FD2E4 [Token(Token = "0x6009002")] [Address(RVA = "0x1E73ED0", Offset = "0x1E728D0", VA = "0x181E73ED0")] public BasicTlsPskIdentity(byte[] identity, byte[] psk) { this.SkipIdentityHint(); byte[] array = Arrays.Clone(identity); this.mIdentity = array; byte[] array2 = Arrays.Clone(psk); this.mPsk = array2; } // Token: 0x06009003 RID: 36867 RVA: 0x001FF114 File Offset: 0x001FD314 [Token(Token = "0x6009003")] [Address(RVA = "0x1E73F60", Offset = "0x1E72960", VA = "0x181E73F60")] public BasicTlsPskIdentity(string identity, byte[] psk) { this.SkipIdentityHint(); byte[] array = Arrays.Clone(psk); this.mPsk = array; } // Token: 0x06009004 RID: 36868 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x6009004")] [Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "8")] public virtual void SkipIdentityHint() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06009005 RID: 36869 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x6009005")] [Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "9")] public virtual void NotifyIdentityHint(byte[] psk_identity_hint) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06009006 RID: 36870 RVA: 0x001FF138 File Offset: 0x001FD338 [Token(Token = "0x6009006")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "10")] public virtual byte[] GetPskIdentity() { return this.mIdentity; } // Token: 0x06009007 RID: 36871 RVA: 0x001FF14C File Offset: 0x001FD34C [Token(Token = "0x6009007")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "11")] public virtual byte[] GetPsk() { return this.mPsk; } // Token: 0x04005EB3 RID: 24243 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4005EB3")] protected byte[] mIdentity; // Token: 0x04005EB4 RID: 24244 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4005EB4")] protected byte[] mPsk; } }