xref: /aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/wycheproof-0.4.0/tests/tests.rs (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 #[test]
test_aead_parsing()2 fn test_aead_parsing() {
3     for test in wycheproof::aead::TestName::all() {
4         let _kat = wycheproof::aead::TestSet::load(test).unwrap();
5     }
6 }
7 
8 #[test]
test_cipher_parsing()9 fn test_cipher_parsing() {
10     for test in wycheproof::cipher::TestName::all() {
11         let _kat = wycheproof::cipher::TestSet::load(test).unwrap();
12     }
13 }
14 
15 #[test]
test_daead_parsing()16 fn test_daead_parsing() {
17     for test in wycheproof::daead::TestName::all() {
18         let _kat = wycheproof::daead::TestSet::load(test).unwrap();
19     }
20 }
21 
22 #[test]
test_dsa_parsing()23 fn test_dsa_parsing() {
24     for test in wycheproof::dsa::TestName::all() {
25         let _kat = wycheproof::dsa::TestSet::load(test).unwrap();
26     }
27 }
28 
29 #[test]
test_ecdh_parsing()30 fn test_ecdh_parsing() {
31     for test in wycheproof::ecdh::TestName::all() {
32         let _kat = wycheproof::ecdh::TestSet::load(test).unwrap();
33     }
34 }
35 
36 #[test]
test_ecdsa_parsing()37 fn test_ecdsa_parsing() {
38     for test in wycheproof::ecdsa::TestName::all() {
39         let _kat = wycheproof::ecdsa::TestSet::load(test).unwrap();
40     }
41 }
42 
43 #[test]
test_eddsa_parsing()44 fn test_eddsa_parsing() {
45     for test in wycheproof::eddsa::TestName::all() {
46         let _kat = wycheproof::eddsa::TestSet::load(test).unwrap();
47     }
48 }
49 
50 #[test]
test_hkdf_parsing()51 fn test_hkdf_parsing() {
52     for test in wycheproof::hkdf::TestName::all() {
53         let _kat = wycheproof::hkdf::TestSet::load(test).unwrap();
54     }
55 }
56 
57 #[test]
test_keywrap_parsing()58 fn test_keywrap_parsing() {
59     for test in wycheproof::keywrap::TestName::all() {
60         let _kat = wycheproof::keywrap::TestSet::load(test).unwrap();
61     }
62 }
63 
64 #[test]
test_mac_parsing()65 fn test_mac_parsing() {
66     for test in wycheproof::mac::TestName::all() {
67         let _kat = wycheproof::mac::TestSet::load(test).unwrap();
68     }
69 }
70 
71 #[test]
test_mac_with_iv_parsing()72 fn test_mac_with_iv_parsing() {
73     for test in wycheproof::mac_with_iv::TestName::all() {
74         let _kat = wycheproof::mac_with_iv::TestSet::load(test).unwrap();
75     }
76 }
77 
78 #[test]
test_primality_parsing()79 fn test_primality_parsing() {
80     for test in wycheproof::primality::TestName::all() {
81         let _kat = wycheproof::primality::TestSet::load(test).unwrap();
82     }
83 }
84 
85 #[test]
test_rsa_oaep_parsing()86 fn test_rsa_oaep_parsing() {
87     for test in wycheproof::rsa_oaep::TestName::all() {
88         let _kat = wycheproof::rsa_oaep::TestSet::load(test).unwrap();
89     }
90 }
91 
92 #[test]
test_rsa_pkcs1_decrypt_parsing()93 fn test_rsa_pkcs1_decrypt_parsing() {
94     for test in wycheproof::rsa_pkcs1_decrypt::TestName::all() {
95         let _kat = wycheproof::rsa_pkcs1_decrypt::TestSet::load(test).unwrap();
96     }
97 }
98 
99 #[test]
test_rsa_pkcs1_sign_parsing()100 fn test_rsa_pkcs1_sign_parsing() {
101     for test in wycheproof::rsa_pkcs1_sign::TestName::all() {
102         let _kat = wycheproof::rsa_pkcs1_sign::TestSet::load(test).unwrap();
103     }
104 }
105 
106 #[test]
test_rsa_pkcs1_verify_parsing()107 fn test_rsa_pkcs1_verify_parsing() {
108     for test in wycheproof::rsa_pkcs1_verify::TestName::all() {
109         let _kat = wycheproof::rsa_pkcs1_verify::TestSet::load(test).unwrap();
110     }
111 }
112 
113 #[test]
test_rsa_pss_verify_parsing()114 fn test_rsa_pss_verify_parsing() {
115     for test in wycheproof::rsa_pss_verify::TestName::all() {
116         let _kat = wycheproof::rsa_pss_verify::TestSet::load(test).unwrap();
117     }
118 }
119 
120 #[test]
test_xdh_parsing()121 fn test_xdh_parsing() {
122     for test in wycheproof::xdh::TestName::all() {
123         let _kat = wycheproof::xdh::TestSet::load(test).unwrap();
124     }
125 }
126