• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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()7 fn test_rng() {
8     let mut rng = rng::BoringRng::default();
9     kmr_tests::test_rng(&mut rng);
10 }
11 
12 #[test]
test_eq()13 fn test_eq() {
14     let comparator = eq::BoringEq;
15     kmr_tests::test_eq(comparator);
16 }
17 
18 #[test]
test_hkdf()19 fn test_hkdf() {
20     kmr_tests::test_hkdf(hmac::BoringHmac {});
21 }
22 
23 #[test]
test_hmac()24 fn test_hmac() {
25     kmr_tests::test_hmac(hmac::BoringHmac {});
26 }
27 
28 #[cfg(soong)]
29 #[test]
test_aes_cmac()30 fn test_aes_cmac() {
31     kmr_tests::test_aes_cmac(aes_cmac::BoringAesCmac {});
32 }
33 
34 #[cfg(soong)]
35 #[test]
test_ckdf()36 fn test_ckdf() {
37     kmr_tests::test_ckdf(aes_cmac::BoringAesCmac {});
38 }
39 
40 #[test]
test_aes_gcm()41 fn test_aes_gcm() {
42     kmr_tests::test_aes_gcm(aes::BoringAes {});
43 }
44 
45 #[test]
test_des()46 fn test_des() {
47     kmr_tests::test_des(des::BoringDes {});
48 }
49