Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl = queryUrl;
     Tag = tag.BytesToString();
     ComputeKeys();
 }
Пример #4
0
 public Cookie(HandShake handshake, byte[] tag, string queryUrl)
 {
     CookieComputing = new CookieComputing(handshake);
     QueryUrl        = queryUrl;
     Tag             = tag.BytesToString();
     ComputeKeys();
 }