Lines Matching refs:spake2
101 SPAKE2Run spake2; in TEST() local
102 ASSERT_TRUE(spake2.Run()); in TEST()
103 EXPECT_TRUE(spake2.key_matches()); in TEST()
108 SPAKE2Run spake2; in TEST() local
109 spake2.bob_password = "wrong password"; in TEST()
110 ASSERT_TRUE(spake2.Run()); in TEST()
111 EXPECT_FALSE(spake2.key_matches()) << "Key matched for unequal passwords."; in TEST()
115 SPAKE2Run spake2; in TEST() local
116 spake2.alice_names.second = "charlie"; in TEST()
117 spake2.bob_names.second = "charlie"; in TEST()
118 ASSERT_TRUE(spake2.Run()); in TEST()
119 EXPECT_FALSE(spake2.key_matches()) << "Key matched for unequal names."; in TEST()
124 SPAKE2Run spake2; in TEST() local
125 spake2.alice_corrupt_msg_bit = i; in TEST()
126 EXPECT_FALSE(spake2.Run() && spake2.key_matches()) in TEST()