def test_not_matching_keyShares(self): hs = HandshakeSettings() hs.keyShares = ["x25519"] hs.eccCurves = ["x448"] with self.assertRaises(ValueError) as e: hs.validate() self.assertIn("x25519", str(e.exception))
def test_invalid_curve_name(self): hs = HandshakeSettings() hs.eccCurves = ['P-256'] with self.assertRaises(ValueError): hs.validate()
def test_invalid_curve_name(self): hs = HandshakeSettings() hs.eccCurves = ['P-256'] with self.assertRaises(ValueError): hs.validate()