/optee_os-3.20.0/lib/libutils/ext/ |
A D | consttime_memcmp.c | 36 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 D | fault_mitigation.c | 65 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 D | pkcs_5_1.c | 46 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 D | fault_mitigation.h | 130 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 D | string_ext.h | 25 int consttime_memcmp(const void *p1, const void *p2, size_t nb);
|
/optee_os-3.20.0/core/arch/arm/crypto/ |
A D | aes-gcm-ce.c | 178 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 D | ghash-ce-core_a64.S | 106 .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 D | clk-stm32-core.h | 132 uint32_t *tab, uint32_t *nb);
|
A D | clk-stm32-core.c | 483 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 D | ssl_tls.c | 409 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 …]
|