Home
last modified time | relevance | path

Searched refs:hmac_sha256 (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Virtualization/libs/bssl/tests/
Dhmac_test.rs19 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/
Dpub_key.rs18 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/
Dlib.rs46 pub use hmac::hmac_sha256;
Dhmac.rs24 pub fn hmac_sha256(key: &[u8], data: &[u8]) -> Result<[u8; SHA256_DIGEST_LENGTH]> { in hmac_sha256() function