Home
last modified time | relevance | path

Searched refs:UNITTEST_KEYSLOT (Results 1 – 2 of 2) sorted by relevance

/trusty/user/app/sample/hwcrypto-unittest/
Dmain.c58 static const uint8_t UNITTEST_KEYSLOT[] = "unittestkeyslotunittestkeyslotun"; variable
817 rc = memcmp(UNITTEST_KEYSLOT, dest, sizeof(UNITTEST_KEYSLOT) - 1); in TEST_F()
878 uint8_t key_buf[sizeof(UNITTEST_KEYSLOT) - 1] = {0}; in TEST_F()
884 rc = memcmp(UNITTEST_KEYSLOT, key_buf, sizeof(UNITTEST_KEYSLOT) - 1); in TEST_F()
908 uint8_t key_buf[sizeof(UNITTEST_KEYSLOT)] = {0}; in TEST_F()
913 EXPECT_EQ(actual_size, sizeof(UNITTEST_KEYSLOT) - 1, "wrong key length"); in TEST_F()
914 rc = memcmp(UNITTEST_KEYSLOT, key_buf, sizeof(UNITTEST_KEYSLOT) - 1); in TEST_F()
918 memset(key_buf, 0, sizeof(UNITTEST_KEYSLOT)); in TEST_F()
935 memset(key_buf, 0, sizeof(UNITTEST_KEYSLOT)); in TEST_F()
979 uint8_t key_buf[sizeof(UNITTEST_KEYSLOT)] = {0}; in TEST_F()
[all …]
/trusty/user/base/lib/hwkey/rust/src/
Dtest.rs33 const UNITTEST_KEYSLOT: &'static [u8] = b"unittestkeyslotunittestkeyslotun"; constant
492 assert_eq!(UNITTEST_KEYSLOT, keyslot_res.expect("could not get keyslot data")) in test_get_keybox()
542 assert_eq!(UNITTEST_KEYSLOT, keyslot_data) in test_get_opaque_key()
579 assert_eq!(UNITTEST_KEYSLOT, handle_keyslot_data); in test_get_multiple_opaque_keys()
643 assert_eq!(UNITTEST_KEYSLOT, keyslot_data); in test_get_opaque_handle_multiple_sessions()
649 assert_eq!(UNITTEST_KEYSLOT, keyslot_data); in test_get_opaque_handle_multiple_sessions()
656 assert_eq!(UNITTEST_KEYSLOT, keyslot_data); in test_get_opaque_handle_multiple_sessions()
662 assert_eq!(UNITTEST_KEYSLOT, keyslot_data); in test_get_opaque_handle_multiple_sessions()