net/darknet_auth_unittest.cc
// darknet handshake test. Pick a nonce, ECDH keypair, iv and padding length
darknet handshake test. Pick a nonce, ECDH keypair, iv and padding length
darknet handshake test . Pick a nonce ECDH keypair iv and padding length
TEST(DarknetAuth, JFK1) {
  for (int i(0); i < 10; ++i) {
    net::DarknetAuth da(my_identity, i1_identity, "127.0.0.1", kPort);
    int bytes_sent { da.SendJFK1() };
    EXPECT_GE(bytes_sent, kMinSize);
    EXPECT_LE(bytes_sent, kMaxSize);
  }
}
TEST ( DarknetAuth , JFK1 ) { for ( int i ( 0 ) ; i < 10 ; ++ i ) { net :: DarknetAuth da ( my_identity , i1_identity , " " , kPort ) ; int bytes_sent { da . SendJFK1 ( ) } ; EXPECT_GE ( bytes_sent , kMinSize ) ; EXPECT_LE ( bytes_sent , kMaxSize ) ; } }
darknet handshake test.
darknet handshake test .
// Client sends to the server. // Don't know exactly how many bytes are sent, as there is an extra random // bytes padded for security.