Пример #1
0
 public void LinkFrontendSetup()
 {
     var decrypter = new DecryptStm();
     var encrypter = new EncryptStm();
     _fakePhysical = Substitute.For<IPhysical>();
     _uut = new Link(decrypter, encrypter, _fakePhysical, 1000);
 }
Пример #2
0
 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());
 }
Пример #3
0
 public virtual void ParseByte(EncryptStm context, byte b)
 {
     throw new ArgumentException();
 }
Пример #4
0
 public virtual void OnEnter(EncryptStm context)
 {
 }
Пример #5
0
 public virtual int GetEncryptedMessage(EncryptStm context, out byte[] buffer)
 {
     throw new ArgumentException();
 }