1 //! NIST keywrapping tests 2 3 use super::*; 4 5 define_test_set!("Keywrap", "keywrap_test_schema.json"); 6 7 define_test_set_names!( 8 KeyWrap => "kw", 9 KeyWrapWithPadding => "kwp", 10 ); 11 12 define_algorithm_map!( 13 "KW" => KeyWrap, 14 "KWP" => KeyWrapWithPadding, 15 ); 16 17 define_test_flags!(SmallKey, WeakWrapping); 18 19 define_typeid!(TestGroupTypeId => "KeywrapTest"); 20 21 define_test_group!( 22 "keySize" => key_size: usize, 23 ); 24 25 define_test!(key: Vec<u8>, msg: Vec<u8>, ct: Vec<u8>); 26