Home
last modified time | relevance | path

Searched refs:HWKEY_OPAQUE_HANDLE_MAX_SIZE (Results 1 – 8 of 8) sorted by relevance

/trusty/user/base/lib/hwkey/rust/src/
Dtest.rs514 const HWKEY_OPAQUE_HANDLE_MAX_SIZE: usize = 128; in test_get_opaque_handle() constant
516 let buf = &mut [0u8; HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize]; in test_get_opaque_handle()
521 <= HWKEY_OPAQUE_HANDLE_MAX_SIZE in test_get_opaque_handle()
533 let buf = &mut [0u8; HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize]; in test_get_opaque_key()
536 assert!(opaque_handle.len() <= HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize); in test_get_opaque_key()
548 let handle_buf = &mut [0u8; HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize]; in test_get_multiple_opaque_keys()
550 let no_access_handle_buf = &mut [0u8; HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize]; in test_get_multiple_opaque_keys()
561 assert!(handle.len() <= HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize); in test_get_multiple_opaque_keys()
569 assert!(no_access_handle.len() <= HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize); in test_get_multiple_opaque_keys()
613 let buf = &mut [0u8; HWKEY_OPAQUE_HANDLE_MAX_SIZE as usize]; in test_get_opaque_handle_multiple_sessions()
[all …]
/trusty/user/app/sample/hwcrypto-unittest/
Dmain.c846 uint8_t dest[HWKEY_OPAQUE_HANDLE_MAX_SIZE] = {0}; in TEST_F()
853 EXPECT_LE(actual_size, HWKEY_OPAQUE_HANDLE_MAX_SIZE); in TEST_F()
855 rc = strnlen((const char*)dest, HWKEY_OPAQUE_HANDLE_MAX_SIZE); in TEST_F()
856 EXPECT_LT(rc, HWKEY_OPAQUE_HANDLE_MAX_SIZE, in TEST_F()
866 uint8_t handle[HWKEY_OPAQUE_HANDLE_MAX_SIZE] = {0}; in TEST_F()
873 EXPECT_LE(actual_size, HWKEY_OPAQUE_HANDLE_MAX_SIZE); in TEST_F()
874 rc = strnlen((const char*)handle, HWKEY_OPAQUE_HANDLE_MAX_SIZE); in TEST_F()
875 EXPECT_LT(rc, HWKEY_OPAQUE_HANDLE_MAX_SIZE, in TEST_F()
889 uint8_t handle1[HWKEY_OPAQUE_HANDLE_MAX_SIZE] = {0}; in TEST_F()
895 EXPECT_LE(actual_size, HWKEY_OPAQUE_HANDLE_MAX_SIZE); in TEST_F()
[all …]
/trusty/user/base/app/hwaes-unittest/
Dhwaes-test.c864 uint8_t key_handle[HWKEY_OPAQUE_HANDLE_MAX_SIZE] = {0}; in TEST_F()
865 uint32_t key_handle_size = HWKEY_OPAQUE_HANDLE_MAX_SIZE; in TEST_F()
869 EXPECT_LE(key_handle_size, HWKEY_OPAQUE_HANDLE_MAX_SIZE, in TEST_F()
893 uint8_t key_handle[HWKEY_OPAQUE_HANDLE_MAX_SIZE] = {0}; in TEST_F()
894 uint32_t key_handle_size = HWKEY_OPAQUE_HANDLE_MAX_SIZE; in TEST_F()
898 EXPECT_LE(key_handle_size, HWKEY_OPAQUE_HANDLE_MAX_SIZE, in TEST_F()
928 uint8_t key_handle[HWKEY_OPAQUE_HANDLE_MAX_SIZE] = {0}; in TEST_F()
929 uint32_t key_handle_size = HWKEY_OPAQUE_HANDLE_MAX_SIZE; in TEST_F()
933 EXPECT_LE(key_handle_size, HWKEY_OPAQUE_HANDLE_MAX_SIZE, in TEST_F()
962 uint8_t key_handle[HWKEY_OPAQUE_HANDLE_MAX_SIZE + 1] = {0}; in TEST_F()
[all …]
/trusty/user/base/interface/hwkey/include/interface/hwkey/
Dhwkey.h32 #define HWKEY_OPAQUE_HANDLE_MAX_SIZE 128 macro
/trusty/user/base/lib/sample/apploader_policy_engine/
Dapploader_policy_engine.cpp43 std::max(128, HWKEY_OPAQUE_HANDLE_MAX_SIZE);
/trusty/user/app/sample/hwcrypto/
Dhwkey_srv_priv.h61 STATIC_ASSERT(HWKEY_OPAQUE_HANDLE_SIZE <= HWKEY_OPAQUE_HANDLE_MAX_SIZE);
/trusty/user/base/lib/apploader_package/
Dpackage.cpp50 std::max(128, HWKEY_OPAQUE_HANDLE_MAX_SIZE);
/trusty/user/app/sample/hwaes/
Dmain.c106 if (key.len > HWKEY_OPAQUE_HANDLE_MAX_SIZE) { in hwaes_aes_op()