Searched refs:hmac_sha256 (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Virtualization/libs/bssl/tests/ |
D | hmac_test.rs | 19 use bssl_avf::{hmac_sha256, Result}; 30 assert_eq!(HMAC_SHA256, hmac_sha256(KEY, DATA)?); in rfc4231_test_case_1() 43 assert_eq!(HMAC_SHA256, hmac_sha256(KEY, DATA)?); in rfc4231_test_case_2() 56 assert_eq!(HMAC_SHA256, hmac_sha256(KEY, DATA)?); in rfc4231_test_case_3() 72 assert_eq!(HMAC_SHA256, hmac_sha256(KEY, DATA)?); in rfc4231_test_case_4() 85 let res = hmac_sha256(KEY, DATA)?; in rfc4231_test_case_5() 99 assert_eq!(HMAC_SHA256, hmac_sha256(KEY, DATA)?); in rfc4231_test_case_6() 113 assert_eq!(HMAC_SHA256, hmac_sha256(KEY, DATA.as_bytes())?); in rfc4231_test_case_7()
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | pub_key.rs | 18 use bssl_avf::hmac_sha256; 34 let computed_tag = hmac_sha256(hmac_key, data)?; in verify_tag() 51 .try_create_tag(external_aad, |data| hmac_sha256(hmac_key, data).map(|v| v.to_vec()))? in build_maced_public_key()
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | lib.rs | 46 pub use hmac::hmac_sha256;
|
D | hmac.rs | 24 pub fn hmac_sha256(key: &[u8], data: &[u8]) -> Result<[u8; SHA256_DIGEST_LENGTH]> { in hmac_sha256() function
|