1 use super::*; 2 3 // Inject the BoringSSL-based implementations of crypto traits into the smoke tests from 4 // `kmr_tests`. 5 6 #[test] test_rng()7fn test_rng() { 8 let mut rng = rng::BoringRng::default(); 9 kmr_tests::test_rng(&mut rng); 10 } 11 12 #[test] test_eq()13fn test_eq() { 14 let comparator = eq::BoringEq; 15 kmr_tests::test_eq(comparator); 16 } 17 18 #[test] test_hkdf()19fn test_hkdf() { 20 kmr_tests::test_hkdf(hmac::BoringHmac {}); 21 } 22 23 #[test] test_hmac()24fn test_hmac() { 25 kmr_tests::test_hmac(hmac::BoringHmac {}); 26 } 27 28 #[cfg(soong)] 29 #[test] test_aes_cmac()30fn test_aes_cmac() { 31 kmr_tests::test_aes_cmac(aes_cmac::BoringAesCmac {}); 32 } 33 34 #[cfg(soong)] 35 #[test] test_ckdf()36fn test_ckdf() { 37 kmr_tests::test_ckdf(aes_cmac::BoringAesCmac {}); 38 } 39 40 #[test] test_aes_gcm()41fn test_aes_gcm() { 42 kmr_tests::test_aes_gcm(aes::BoringAes {}); 43 } 44 45 #[test] test_des()46fn test_des() { 47 kmr_tests::test_des(des::BoringDes {}); 48 } 49