Searched refs:HWKEY_OPAQUE_HANDLE_MAX_SIZE (Results 1 – 8 of 8) sorted by relevance
/trusty/user/base/lib/hwkey/rust/src/ |
D | test.rs | 514 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/ |
D | main.c | 846 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/ |
D | hwaes-test.c | 864 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/ |
D | hwkey.h | 32 #define HWKEY_OPAQUE_HANDLE_MAX_SIZE 128 macro
|
/trusty/user/base/lib/sample/apploader_policy_engine/ |
D | apploader_policy_engine.cpp | 43 std::max(128, HWKEY_OPAQUE_HANDLE_MAX_SIZE);
|
/trusty/user/app/sample/hwcrypto/ |
D | hwkey_srv_priv.h | 61 STATIC_ASSERT(HWKEY_OPAQUE_HANDLE_SIZE <= HWKEY_OPAQUE_HANDLE_MAX_SIZE);
|
/trusty/user/base/lib/apploader_package/ |
D | package.cpp | 50 std::max(128, HWKEY_OPAQUE_HANDLE_MAX_SIZE);
|
/trusty/user/app/sample/hwaes/ |
D | main.c | 106 if (key.len > HWKEY_OPAQUE_HANDLE_MAX_SIZE) { in hwaes_aes_op()
|