Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 3
0
 public CookieComputing(OutboundHandshake handshake)
 {
     Nonce = new byte[0];
     DH = RtmfpUtils.BeginDiffieHellman(ref Nonce, true);
     
 }
Esempio n. 4
0
 public CookieComputing(OutboundHandshake handshake)
 {
     Nonce = new byte[0];
     DH    = RtmfpUtils.BeginDiffieHellman(ref Nonce, true);
 }