Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 55) sorted by relevance

123

/optee_test/ta/rpc_test/
A Dta_rpc.c23 size_t n = 0; in rpc_call_cryp() local
40 for (n = 0; n < 4; n++) { in rpc_call_cryp()
44 params[n].value = pParams[n].value; in rpc_call_cryp()
50 params[n].memref.buffer = in rpc_call_cryp()
52 if (!params[n].memref.buffer) in rpc_call_cryp()
54 params[n].memref.size = pParams[n].memref.size; in rpc_call_cryp()
59 pParams[n].memref.size); in rpc_call_cryp()
79 for (n = 0; n < 4; n++) { in rpc_call_cryp()
83 pParams[n].value = params[n].value; in rpc_call_cryp()
93 params[n].memref.size); in rpc_call_cryp()
[all …]
/optee_test/host/xtest/adbg/src/
A Dsecurity_utils_hex.c54 size_t n;
72 for (n = 0; n < BufferLength; n++) {
76 if (((n + 1) % 4) == 0)
81 if (isprint(Data_p[n]))
119 size_t n;
128 for (n = 0; n < BufferLength; n += 16) {
129 (void)SecUtil_BufferToHex(Data_p + n, MIN(16, BufferLength - n),
148 size_t n = 0; in SecUtil_BufferToHex() local
180 for (n = 0; n < BufferLength; n++) { in SecUtil_BufferToHex()
185 if (n == BufferLength - 1) in SecUtil_BufferToHex()
[all …]
A Dadbg_log.c54 size_t n = 0; in Do_ADBG_HexLog() local
56 for (n = 0; n < Size; n += Cols) { in Do_ADBG_HexLog()
61 (void)SecUtil_BufferToHex(Data_p + n, MIN(Cols, Size - n), NULL, in Do_ADBG_HexLog()
63 NumCols = MIN(MIN(Cols, Size - n), sizeof(AsciiBuffer) - 1); in Do_ADBG_HexLog()
65 int ch = Data_p[n + m]; in Do_ADBG_HexLog()
/optee_test/host/xtest/
A Dsock_server.c75 size_t n = 0; in server_add_state() local
77 for (n = 0; n < srvst->nfds; n++) { in server_add_state()
160 size_t n = 0; in sock_server() local
165 for (n = 0; n < ts->num_binds; n++) { in sock_server()
187 for (n = 0; pres && n < srvst.nfds; n++) { in sock_server()
190 if (!srvst.socks[n].cb(&srvst, n)) in sock_server()
202 for (n = 0; n < srvst.nfds; n++) { in sock_server()
204 if (srvst.fds[n].fd != -1 && srvst.socks[n].serv && in sock_server()
205 srvst.fds[n].fd != srvst.socks[n].serv->fd) { in sock_server()
284 size_t n = 0; in sock_server_uninit() local
[all …]
A Dregression_4100.c718 for (n = 0; n < ARRAY_SIZE(data); n++) { in test_4102()
787 for (n = 0; n < ARRAY_SIZE(data); n++) { in test_4103()
812 for (n = 0; n < ARRAY_SIZE(data_str); n++) { in test_4103()
920 for (n = 0; n < ARRAY_SIZE(data); n++) { in test_4104()
960 for (n = 0; n < ARRAY_SIZE(data_s32); n++) { in test_4104()
1144 for (n = 0; n < ARRAY_SIZE(data); n++) { in test_4105()
1184 for (n = 0; n < ARRAY_SIZE(data); n++) { in test_4106()
1299 for (n = 0; n < ARRAY_SIZE(data); n++) { in test_4107()
1449 for (n = 0; n < ARRAY_SIZE(data); n++) { in test_4108()
1451 data[n].t, data[n].out, data[n].qsign, in test_4108()
[all …]
A Dregression_4000.c1006 for (n = 0; n < ARRAY_SIZE(hash_cases); n++) { in xtest_tee_test_4001()
1239 for (n = 0; n < ARRAY_SIZE(mac_cases); n++) { in xtest_tee_test_4002()
2164 for (n = 0; n < ARRAY_SIZE(ciph_cases); n++) { in xtest_tee_test_4003()
2478 for (n = 0; n < ARRAY_SIZE(ae_cases); n++) { in xtest_tee_test_4005()
3575 for (n = 0; n < num_attrs; n++) { in create_key()
4161 for (n = 0; n < out_size; n++) in test_keygen_attributes()
4346 for (n = 0; n < num_key_types; n++) { in keygen_noparams()
4501 for (n = 0; n < ARRAY_SIZE(key_types); n++) { in xtest_tee_test_4007_dh()
4591 for (n = 0; n < ARRAY_SIZE(key_types); n++) { in xtest_tee_test_4007_dsa()
4670 for (n = 0; n < ARRAY_SIZE(key_types); n++) { in xtest_tee_test_4007_ecc()
[all …]
A Dregression_1000.c278 for (n = 0; n < sizeof(buf); n++) in xtest_tee_test_1002()
280 for (n = 0; n < sizeof(buf); n++) in xtest_tee_test_1002()
383 for (n = 0; n < nt; n++) { in xtest_tee_test_1003()
397 for (n = 0; n < nt; n++) { in xtest_tee_test_1003()
757 for (n = 0; n < 100; n++) { in xtest_tee_test_1008()
855 for (n = 1; n <= 7; n++) { in xtest_tee_test_1010()
862 for (n = 1; n <= 5; n++) { in xtest_tee_test_1010()
1118 for (n = 0; n < nt; n++) { in xtest_tee_test_1013_single()
1128 for (n = 0; n < nt; n++) { in xtest_tee_test_1013_single()
1161 for (n = 0; n < nt; n++) { in xtest_tee_test_1013_single()
[all …]
A Dstats.c126 size_t n = 0; in stat_alloc() local
165 for (n = 0; n < stats_size_bytes / sizeof(*stats); n++) { in stat_alloc()
166 if (n) in stat_alloc()
169 (int)strnlen(stats[n].desc, sizeof(stats[n].desc)), in stat_alloc()
170 stats[n].desc); in stat_alloc()
172 stats[n].allocated); in stat_alloc()
174 stats[n].max_allocated); in stat_alloc()
176 stats[n].size); in stat_alloc()
178 stats[n].num_alloc_fail); in stat_alloc()
180 stats[n].biggest_alloc_fail); in stat_alloc()
[all …]
A Dxtest_helpers.c133 size_t n = 0; in pack_attrs() local
141 for (n = 0; n < attr_count; n++) { in pack_attrs()
145 if (!attrs[n].content.ref.buffer) in pack_attrs()
164 for (n = 0; n < attr_count; n++) { in pack_attrs()
165 a[n].attr_id = attrs[n].attributeID; in pack_attrs()
167 a[n].a = attrs[n].content.value.a; in pack_attrs()
168 a[n].b = attrs[n].content.value.b; in pack_attrs()
172 a[n].b = attrs[n].content.ref.length; in pack_attrs()
174 if (!attrs[n].content.ref.buffer) { in pack_attrs()
175 a[n].a = 0; in pack_attrs()
[all …]
A Dsha_perf.c73 int n; member
87 s->n++; in update_stats()
88 s->m += delta/s->n; in update_stats()
103 if (s->n < 2) in stddev()
105 return sqrt(s->M2/s->n); in stddev()
293 int n0 = n; in sha_perf_run_test()
334 while (n-- > 0) { in sha_perf_run_test()
338 if (n % (n0 / 10) == 0) in sha_perf_run_test()
404 usage(argv[0], algo, size, warmup, l, n); in sha_perf_runner_cmd_parser()
432 n = atoi(argv[i]); in sha_perf_runner_cmd_parser()
[all …]
A Dregression_8000.c315 size_t n = 0; in xtest_test_derivation_hkdf() local
359 for (n = 0; n < sizeof(hkdf_cases) / sizeof(struct hkdf_case); n++) { in xtest_test_derivation_hkdf()
367 const struct hkdf_case *hc = &hkdf_cases[n]; in xtest_test_derivation_hkdf()
452 size_t n = 0; in xtest_test_derivation_concat_kdf() local
477 for (n = 0; in xtest_test_derivation_concat_kdf()
479 n++) { in xtest_test_derivation_concat_kdf()
571 size_t n = 0; in xtest_test_derivation_pbkdf2() local
580 #define _TO_STR(n) #n in xtest_test_derivation_pbkdf2() argument
581 #define TO_STR(n) _TO_STR(n) in xtest_test_derivation_pbkdf2() argument
582 #define RFC6070_TEST(l, n) \ in xtest_test_derivation_pbkdf2() argument
[all …]
A Daes_perf.c131 int n; member
145 s->n++; in update_stats()
146 s->m += delta/s->n; in update_stats()
161 if (s->n < 2) in stddev()
163 return sqrt(s->M2/s->n); in stddev()
188 size_t unit, int warmup, unsigned int l, unsigned int n) in usage() argument
427 unsigned int n, unsigned int l, int input_data_init, in aes_perf_run_test() argument
433 int n0 = n; in aes_perf_run_test()
486 while (n-- > 0) { in aes_perf_run_test()
518 if (n % (n0 / 10) == 0) in aes_perf_run_test()
[all …]
A Dxtest_uuid_helpers.c31 size_t n = 0; in parse_hex() local
34 for (n = 0; n < nchars; n++) { in parse_hex()
35 c = hex(s[n]); in parse_hex()
A Dregression_6000.c1130 uint32_t n = 0; in xtest_tee_test_6010_single() local
1132 for (n = 0; n < ARRAY_SIZE(data); n++) in xtest_tee_test_6010_single()
1133 data[n] = n; in xtest_tee_test_6010_single()
1251 out, n); in xtest_tee_test_6010_single()
1577 size_t n = 0; in xtest_tee_test_6016_loop() local
1587 for (n = 0; n < NUM_THREADS; n++) { in xtest_tee_test_6016_loop()
1590 snprintf(arg[n].file_name, sizeof(arg[n].file_name), in xtest_tee_test_6016_loop()
1591 "file_%zu", n); in xtest_tee_test_6016_loop()
1682 size_t n = 0; in xtest_tee_test_6018_single() local
1703 for (n = 0; n < num_blocks; n++) { in xtest_tee_test_6018_single()
[all …]
/optee_test/ta/crypt/
A Dhandle.c28 size_t n = 0; in handle_get() local
36 for (n = 0; n < db->max_ptrs; n++) { in handle_get()
37 if (!db->ptrs[n]) { in handle_get()
38 db->ptrs[n] = ptr; in handle_get()
39 return n; in handle_get()
57 db->ptrs[n] = ptr; in handle_get()
58 return n; in handle_get()
A Darith_taf.c311 const TEE_BigInt *n)) in ternary_func() argument
317 TEE_BigInt *n = lookup_handle(HT_BIGINT, params[1].value.a); in ternary_func() local
320 if (!op1 || !op2 || !n || !dest) in ternary_func()
323 func(dest, op1, op2, n); in ternary_func()
517 TEE_BigInt *n = lookup_handle(HT_BIGINT, params[0].value.b); in ta_entry_arith_to_fmm() local
521 if (!src || !n | !ctx || !dest) in ta_entry_arith_to_fmm()
524 TEE_BigIntConvertToFMM(dest, src, n, ctx); in ta_entry_arith_to_fmm()
539 if (!src || !n | !ctx || !dest) in ta_entry_arith_from_fmm()
542 TEE_BigIntConvertFromFMM(dest, src, n, ctx); in ta_entry_arith_from_fmm()
558 if (!op1 || !op2 || !n | !ctx || !dest) in ta_entry_arith_compute_fmm()
[all …]
A Dcryp_taf.c335 size_t n; in unpack_attrs() local
340 for (n = 0; n < num_attrs; n++) { in unpack_attrs()
343 a[n].attributeID = ap[n].id; in unpack_attrs()
344 if (ap[n].id & TEE_ATTR_FLAG_VALUE) { in unpack_attrs()
345 a[n].content.value.a = ap[n].a; in unpack_attrs()
346 a[n].content.value.b = ap[n].b; in unpack_attrs()
350 a[n].content.ref.length = ap[n].b; in unpack_attrs()
351 p = (uintptr_t)ap[n].a; in unpack_attrs()
353 if ((p + a[n].content.ref.length) > blen) { in unpack_attrs()
359 a[n].content.ref.buffer = (void *)p; in unpack_attrs()
/optee_test/host/xtest/gp/include/
A Dxml_datastorage_api.h1517 (*n)++; in get_attribute_and_advance()
1533 size_t n = 0; in Invoke_PopulateTransientObject() local
1612 size_t n = 0; in Invoke_GetNextPersistentObject_All() local
1623 for (n = 0; n < count; n++) { in Invoke_GetNextPersistentObject_All()
1666 int n = 0; in find_saved_obj_id() local
1668 for (n = 0; n < MAX_NUM_SAVED_OBJ_INFO; n++) in find_saved_obj_id()
1671 return n; in find_saved_obj_id()
1766 memset(saved_attr + n, 0, sizeof(saved_attr[n])); in GetObjectValueAttribute_helper()
1796 for (n = 0; n < num_attr_ids; n++) { in GetAttributes_helper()
1798 res = get_value_attr(c, sess, n, obj, attr_ids[n]); in GetAttributes_helper()
[all …]
A Dxml_common_api.h16 #define BIT(n) (1ul << (n)) argument
215 size_t n, in GetObjectBufferAttribute_helper() argument
227 if (!ADBG_EXPECT_COMPARE_SIGNED(c, n, <, MAX_NUM_SAVED_ATTR_VALUES)) in GetObjectBufferAttribute_helper()
230 sizeof(saved_attr[n].buf))) in GetObjectBufferAttribute_helper()
253 memset(saved_attr + n, 0, sizeof(saved_attr[n])); in GetObjectBufferAttribute_helper()
255 memcpy(saved_attr[n].buf, shm.buffer, in GetObjectBufferAttribute_helper()
256 sizeof(saved_attr[n].buf)); in GetObjectBufferAttribute_helper()
257 saved_attr[n].buf_size = op.params[1].memref.size; in GetObjectBufferAttribute_helper()
258 saved_attr[n].attr_id = attr_id; in GetObjectBufferAttribute_helper()
/optee_test/host/openssl/include/openssl/
A Ddes_old.h160 # define des_cfb_encrypt(i,o,n,l,k,iv,e)\ argument
188 # define des_ofb_encrypt(i,o,n,l,k,iv)\ argument
189 DES_ofb_encrypt((i),(o),(n),(l),&(k),(iv))
220 # define des_cfb64_encrypt(i,o,l,ks,iv,n,e)\ argument
222 # define des_ofb64_encrypt(i,o,l,ks,iv,n)\ argument
234 # define des_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ argument
264 # define des_cfb_encrypt(i,o,n,l,k,iv,e)\ argument
290 # define des_ofb_encrypt(i,o,n,l,k,iv)\ argument
316 # define des_cfb64_encrypt(i,o,l,ks,iv,n,e)\ argument
318 # define des_ofb64_encrypt(i,o,l,ks,iv,n)\ argument
[all …]
A Dsha.h114 unsigned char *SHA(const unsigned char *d, size_t n, unsigned char *md);
124 unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
149 unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md);
153 unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md);
202 unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md);
206 unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md);
A Dbn.h286 # define BN_set_flags(b,n) ((b)->flags|=(n)) argument
287 # define BN_get_flags(b,n) ((b)->flags&(n)) argument
293 # define BN_with_flags(dest,b,n) ((dest)->d=(b)->d, \ argument
300 | (n)))
456 void BN_set_negative(BIGNUM *b, int n);
494 int BN_is_bit_set(const BIGNUM *a, int n);
495 int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
514 int BN_mask_bits(BIGNUM *a, int n);
524 int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
529 int BN_set_bit(BIGNUM *a, int n);
[all …]
/optee_test/ta/os_test/
A Dtest_float_subj.c14 double test_float_ddiv(double n, double d) in test_float_ddiv() argument
16 return n / d; in test_float_ddiv()
64 float test_float_fdiv(float n, float d) in test_float_fdiv() argument
66 return n / d; in test_float_fdiv()
A Dos_test.c109 size_t n = 0; in print_properties() local
215 for (n = 0; n < num_p_attrs; n++) { in print_properties()
219 if (p_attrs[n].retrieved) { in print_properties()
221 p_attrs[n].str); in print_properties()
226 switch (p_attrs[n].type) { in print_properties()
345 p_attrs[n].type, p_attrs[n].str); in print_properties()
416 size_t n = 0; in test_properties() local
442 for (n = 0; n < num_p_attrs; n++) { in test_properties()
1162 size_t n = 0; in ta_entry_params() local
1170 for (n = 0; n < TEE_NUM_PARAMS; n++) in ta_entry_params()
[all …]
/optee_test/ta/sha_perf/
A Dta_sha_perf.c27 int n = 0; in cmd_process() local
46 n = params[2].value.a; in cmd_process()
48 while (n--) { in cmd_process()

Completed in 56 milliseconds

123