public void LinkFrontendSetup() { var decrypter = new DecryptStm(); var encrypter = new EncryptStm(); _fakePhysical = Substitute.For<IPhysical>(); _uut = new Link(decrypter, encrypter, _fakePhysical, 1000); }
public virtual void NewMessage(EncryptStm context, int length) { context.Buffer = new byte[length * 2 + 2]; context.BufferSize = 0; context.AddByte(context.FrameChar); context.SetState(new Parsing()); }
public virtual void ParseByte(EncryptStm context, byte b) { throw new ArgumentException(); }
public virtual void OnEnter(EncryptStm context) { }
public virtual int GetEncryptedMessage(EncryptStm context, out byte[] buffer) { throw new ArgumentException(); }