Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 – 11 of 11) sorted by relevance

/trusty/user/base/lib/hwkey/rust/src/
Dtest.rs125 let buf1 = &mut [0u8; KEY_SIZE as usize]; in test_hwkey_derive_different_default() localVariable
128 .derive(NONSENSE_DATA_32B, buf1) in test_hwkey_derive_different_default()
138 assert_ne!(buf1, buf2); in test_hwkey_derive_different_default()
139 assert_ne!(buf1, NONSENSE_DATA_32B); in test_hwkey_derive_different_default()
141 assert!(keys_are_sufficiently_distinct(buf1, buf2)); in test_hwkey_derive_different_default()
151 let buf1 = &mut [0u8; KEY_SIZE as usize]; in test_hwkey_derive_different_specified() localVariable
158 .derive(NONSENSE_DATA_32B, buf1) in test_hwkey_derive_different_specified()
176 assert_ne!(buf1, buf2); in test_hwkey_derive_different_specified()
177 assert_ne!(buf1, NONSENSE_DATA_32B); in test_hwkey_derive_different_specified()
179 assert!(keys_are_sufficiently_distinct(buf1, buf2)); in test_hwkey_derive_different_specified()
[all …]
/trusty/user/base/lib/libc-trusty/test/
Dlibc_test.c115 unsigned char buf1[128]; in TEST_F() local
119 memset(buf1, 7, sizeof(buf1)); in TEST_F()
121 ASSERT_EQ(0, memcmp(buf1, buf2, sizeof(buf1))); in TEST_F()
124 buf1[127] = 9; in TEST_F()
126 ASSERT_LT(0, memcmp(buf1, buf2, sizeof(buf1))); in TEST_F()
129 buf1[127] = 127; in TEST_F()
131 ASSERT_LT(0, memcmp(buf1, buf2, sizeof(buf1))); in TEST_F()
134 buf1[127] = 8; in TEST_F()
136 ASSERT_GT(0, memcmp(buf1, buf2, sizeof(buf1))); in TEST_F()
139 buf1[127] = 0; in TEST_F()
[all …]
/trusty/kernel/lib/ktipc/include/lib/ktipc/
Dktipc.h214 buf1, sz1, buf2, sz2, buf3, sz3, buf4, sz4, buf5, \ argument
226 KTIPC_INTERNAL_IOV_INIT(buf1, sz1), \
301 buf1, sz1, buf2, sz2, buf3, sz3, buf4, sz4, buf5, \ argument
313 KTIPC_INTERNAL_IOV_INIT(buf1, sz1), \
/trusty/user/base/experimental/lib/tidl/
Dipc.cpp116 void* buf1, in recv() argument
135 .iov_base = buf1, in recv()
190 void* buf1, in recv() argument
211 .iov_base = buf1, in recv()
Dipc_ql_tipc.cpp276 void* buf1, in recv() argument
285 .base = buf1, in recv()
325 void* buf1, in recv() argument
336 .base = buf1, in recv()
/trusty/hardware/nxp/app/hwcrypto/
Dcaam.c619 DECLARE_SG_SAFE_BUF(buf1, 32); in caam_aes_test()
627 for (uint i = 0; i < sizeof(buf1); i++) { in caam_aes_test()
628 buf1[i] = i + '0'; in caam_aes_test()
636 caam_aes_op(key, 16, buf1, buf2, sizeof(buf1), true); in caam_aes_test()
637 caam_aes_op(key, 16, buf1, buf3, sizeof(buf1), true); in caam_aes_test()
640 if (memcmp(buf2, buf3, sizeof(buf1))) in caam_aes_test()
649 if (memcmp(buf1, buf2, sizeof(buf1))) in caam_aes_test()
/trusty/user/base/lib/tipc/include/lib/tipc/
Dtipc.h113 void* buf1,
/trusty/user/base/lib/tipc/
Dtipc.c123 void* buf1, in tipc_recv2() argument
140 .iov_base = buf1, in tipc_recv2()
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/
Dtidl.h294 void* buf1,
311 void* buf1,
/trusty/user/base/lib/tipc/test/main/
Dmain.c1054 uint8_t buf1[64]; in TEST() local
1060 fill_test_buf(buf1, sizeof(buf1), 0x44); in TEST()
1064 iov[1].iov_base = buf1; in TEST()
1065 iov[1].iov_len = sizeof(buf1); in TEST()
/trusty/user/app/sample/hwcrypto-unittest/
Dmain.c70 static bool keys_are_sufficiently_distinct(uint8_t* buf1, in keys_are_sufficiently_distinct() argument
76 if (buf1[i] ^ buf2[i]) { in keys_are_sufficiently_distinct()