Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 10 of 10) sorted by relevance

/optee_os-3.20.0/lib/libutils/ext/
A Dconsttime_memcmp.c36 int consttime_memcmp(const void *p1, const void *p2, size_t nb) { in consttime_memcmp() argument
43 for (/*NOP*/; 0 != nb; --nb, ++ucp1, ++ucp2) { in consttime_memcmp()
A Dfault_mitigation.c65 size_t nb) in ___ftmn_callee_done_memcmp() argument
69 if (!nb) in ___ftmn_callee_done_memcmp()
72 res2 = my_memcmp(p1, p2, nb); in ___ftmn_callee_done_memcmp()
140 size_t nb) in ___ftmn_set_check_res_memcmp() argument
144 if (!nb) in ___ftmn_set_check_res_memcmp()
147 res2 = my_memcmp(p1, p2, nb); in ___ftmn_set_check_res_memcmp()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs5/
A Dpkcs_5_1.c46 unsigned long outidx = 0, nb = 0; in s_pkcs_5_alg1_common() local
109 nb = hash_descriptor[hash_idx]->hashsize; in s_pkcs_5_alg1_common()
110 if(outidx+nb > *outlen) { in s_pkcs_5_alg1_common()
111 nb = *outlen - outidx; in s_pkcs_5_alg1_common()
113 if(nb > 0) { in s_pkcs_5_alg1_common()
114 XMEMCPY(out+outidx, buf, nb); in s_pkcs_5_alg1_common()
/optee_os-3.20.0/lib/libutils/ext/include/
A Dfault_mitigation.h130 typedef int (*ftmn_memcmp_t)(const void *p1, const void *p2, size_t nb);
225 const void *p1, const void *p2, size_t nb);
240 const void *p1, const void *p2, size_t nb);
331 const void *p1, const void *p2, size_t nb) in __ftmn_callee_done_memcmp() argument
333 int res = my_memcmp(p1, p2, nb); in __ftmn_callee_done_memcmp()
337 p1, p2, nb); in __ftmn_callee_done_memcmp()
514 #define FTMN_CALLEE_DONE_MEMCMP(my_memcmp, p1, p2, nb) \ argument
517 (p1), (p2), (nb))
591 size_t nb) in ftmn_set_check_res_memcmp() argument
593 int res = my_memcmp(p1, p2, nb); in ftmn_set_check_res_memcmp()
[all …]
A Dstring_ext.h25 int consttime_memcmp(const void *p1, const void *p2, size_t nb);
/optee_os-3.20.0/core/arch/arm/crypto/
A Daes-gcm-ce.c178 size_t nb = ROUNDDOWN(num_blocks, 2); in internal_aes_gcm_update_payload_blocks() local
189 if (nb) in internal_aes_gcm_update_payload_blocks()
190 update_payload_2block(state, ek, dg, mode, src, nb, dst); in internal_aes_gcm_update_payload_blocks()
192 if (nb != num_blocks) { in internal_aes_gcm_update_payload_blocks()
194 const void *s = (const uint8_t *)src + nb * TEE_AES_BLOCK_SIZE; in internal_aes_gcm_update_payload_blocks()
195 void *d = (uint8_t *)dst + nb * TEE_AES_BLOCK_SIZE; in internal_aes_gcm_update_payload_blocks()
A Dghash-ce-core_a64.S106 .macro __pmull_p8_tail, rq, ad, bd, nb, t, b1, b2, b3, b4
107 pmull\t t3.8h, t3.\nb, \bd // F = A1*B
108 pmull\t t4.8h, \ad, \b1\().\nb // E = A*B1
109 pmull\t t5.8h, t5.\nb, \bd // H = A2*B
110 pmull\t t6.8h, \ad, \b2\().\nb // G = A*B2
111 pmull\t t7.8h, t7.\nb, \bd // J = A3*B
112 pmull\t t8.8h, \ad, \b3\().\nb // I = A*B3
113 pmull\t t9.8h, \ad, \b4\().\nb // K = A*B4
/optee_os-3.20.0/core/drivers/clk/
A Dclk-stm32-core.h132 uint32_t *tab, uint32_t *nb);
A Dclk-stm32-core.c483 uint32_t *tab, uint32_t *nb) in clk_stm32_parse_fdt_by_name() argument
494 *nb = (uint32_t)len / sizeof(uint32_t); in clk_stm32_parse_fdt_by_name()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dssl_tls.c409 size_t nb, hs; in tls1_prf() local
433 nb = strlen( label ); in tls1_prf()
434 memcpy( tmp + 20, label, nb ); in tls1_prf()
435 memcpy( tmp + 20 + nb, random, rlen ); in tls1_prf()
436 nb += rlen; in tls1_prf()
455 ret = mbedtls_md_hmac_update( &md_ctx, tmp + 20, nb ); in tls1_prf()
693 size_t nb; in tls_prf_generic() local
717 nb = strlen( label ); in tls_prf_generic()
718 memcpy( tmp + md_len, label, nb ); in tls_prf_generic()
719 memcpy( tmp + md_len + nb, random, rlen ); in tls_prf_generic()
[all …]

Completed in 56 milliseconds