crypto/jfk_test.cc
// A simple test that checks the correct size of the payload, just for the
// first message.
A simple test that checks the correct size of the payload, just for the
first message.
A simple test that checks the correct size of the payload just for the first message .
TEST(Jfk1, Size) {
  Jfk1 jfk;
  std::string jfk_str(jfk);
  const int kLength(
    kHeaderSize +            
    kNonceLengthInitiator +  
    kPublicKeySize);         
  EXPECT_EQ(jfk_str.length(), kLength);
}
TEST ( Jfk1 , Size ) { Jfk1 jfk ; std :: string jfk_str ( jfk ) ; const int kLength ( kHeaderSize + kNonceLengthInitiator + kPublicKeySize ) ; EXPECT_EQ ( jfk_str . length ( ) , kLength ) ; }
A simple test that checks the correct size of the payload, just for the
first message.
A simple test that checks the correct size of the payload just for the first message .
// Length of header (version, neg_type, phase) // Length of a SHA-256 in bytes // Lenght of a X509 EC public key