public Cookie(HandShake handshake, byte[] tag, string queryUrl) { CookieComputing = new CookieComputing(handshake); QueryUrl = queryUrl; Tag = tag.BytesToString(); ComputeKeys(); }
public CookieComputing(HandShake handshake) { _handshake = handshake; Value = Utils.GenerateRandomBytes(COOKIE_SIZE); if (handshake == null) { Nonce = Utils.GenerateRandomBytes(73); Buffer.BlockCopy(InitBuffer, 0, Nonce, 0, 7); Nonce[7] = 0x41; Nonce[8] = 0x0E; } else { Nonce = InitBuffer.Clone() as byte[]; } }
public InboundRTMFPProtocol() { HandShakeSession = new HandShake(this); //_pCirrus = new Target(new IPEndPoint(0, 0)); }