1 //! Montgomery curve ECDH tests 2 3 use super::*; 4 5 define_test_set!("xDH", "xdh_comp_schema.json"); 6 7 define_test_set_names!( 8 X25519 => "x25519", 9 X448 => "x448", 10 ); 11 12 define_algorithm_map!("XDH" => Xdh); 13 14 define_test_flags!( 15 LowOrderPublic, 16 NonCanonicalPublic, 17 SmallPublicKey, 18 Twist, 19 ZeroSharedSecret, 20 ); 21 22 define_typeid!(TestGroupTypeId => "XdhComp"); 23 24 define_test_group!(curve: MontgomeryCurve); 25 26 define_test!( 27 "public" => public_key: Vec<u8>, 28 "private" => private_key: Vec<u8>, 29 "shared" => shared_secret: Vec<u8>, 30 ); 31