public Cookie(OutboundHandshake handshake, byte[] tag, Target target) { Id = handshake.Id; CookieComputing = new CookieComputing(handshake); Target = target; PeerId = Target.Sha256.ComputeHash(CookieComputing.Nonce, 0, CookieComputing.Nonce.Length); }
public Cookie(OutboundHandshake handshake, byte[] tag, Target target) { Id = handshake.Id; CookieComputing = new CookieComputing(handshake); Target = target; PeerId = Target.Sha256.ComputeHash(CookieComputing.Nonce, 0, CookieComputing.Nonce.Length); }
public Cookie(HandShake handshake, byte[] tag, string queryUrl) { CookieComputing = new CookieComputing(handshake); QueryUrl = queryUrl; Tag = tag.BytesToString(); ComputeKeys(); }
public Cookie(HandShake handshake, byte[] tag, string queryUrl) { CookieComputing = new CookieComputing(handshake); QueryUrl = queryUrl; Tag = tag.BytesToString(); ComputeKeys(); }