Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/misc/pkcs5/
H 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/lib/libutils/ext/
H 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()
H 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/lib/libutils/ext/include/
H A Dfault_mitigation.h130 typedef int (*ftmn_memcmp_t)(const void *p1, const void *p2, size_t nb);
235 const void *p1, const void *p2, size_t nb);
250 const void *p1, const void *p2, size_t nb);
344 const void *p1, const void *p2, size_t nb) in __ftmn_callee_done_memcmp() argument
346 int res = my_memcmp(p1, p2, nb); in __ftmn_callee_done_memcmp()
350 p1, p2, nb); in __ftmn_callee_done_memcmp()
527 #define FTMN_CALLEE_DONE_MEMCMP(my_memcmp, p1, p2, nb) \ argument
530 (p1), (p2), (nb))
604 size_t nb) in ftmn_set_check_res_memcmp() argument
606 int res = my_memcmp(p1, p2, nb); in ftmn_set_check_res_memcmp()
[all …]
H A Dstring_ext.h25 int consttime_memcmp(const void *p1, const void *p2, size_t nb);
/optee_os/core/arch/arm/crypto/
H 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()
H A Dghash-ce-core_a64.S105 .macro __pmull_p8_tail, rq, ad, bd, nb, t, b1, b2, b3, b4
106 pmull\t t3.8h, t3.\nb, \bd // F = A1*B
107 pmull\t t4.8h, \ad, \b1\().\nb // E = A*B1
108 pmull\t t5.8h, t5.\nb, \bd // H = A2*B
109 pmull\t t6.8h, \ad, \b2\().\nb // G = A*B2
110 pmull\t t7.8h, t7.\nb, \bd // J = A3*B
111 pmull\t t8.8h, \ad, \b3\().\nb // I = A*B3
112 pmull\t t9.8h, \ad, \b4\().\nb // K = A*B4
/optee_os/core/arch/arm/dts/
H A Dstm32mp257f-dk.dts77 st,tamp-passive-nb-sample = <4>;
H A Dstm32mp235f-dk.dts69 st,tamp-passive-nb-sample = <4>;
H A Dstm32mp257f-ev1.dts82 st,tamp-passive-nb-sample = <4>;
H A Dstm32mp135f-dk.dts532 st,tamp-passive-nb-sample = <4>;
H A Dstm32mp15xx-dkx.dtsi579 st,tamp-passive-nb-sample = <4>;
/optee_os/core/drivers/clk/
H A Dclk-stm32-core.c518 uint32_t *tab, uint32_t *nb) in clk_stm32_parse_fdt_by_name() argument
529 *nb = (uint32_t)len / sizeof(uint32_t); in clk_stm32_parse_fdt_by_name()
531 *nb = 0; in clk_stm32_parse_fdt_by_name()
H A Dclk-stm32-core.h140 uint32_t *tab, uint32_t *nb);
/optee_os/core/drivers/
H A Dstm32_tamp.c1280 int nb = 0; in popcount() local
1284 nb++; in popcount()
1288 return nb; in popcount()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_tls.c6856 size_t nb; in tls_prf_generic() local
6880 nb = label_len; in tls_prf_generic()
6881 memcpy(tmp + md_len, label, nb); in tls_prf_generic()
6882 memcpy(tmp + md_len + nb, random, rlen); in tls_prf_generic()
6883 nb += rlen; in tls_prf_generic()
6896 ret = mbedtls_md_hmac_update(&md_ctx, tmp + md_len, nb); in tls_prf_generic()
6910 ret = mbedtls_md_hmac_update(&md_ctx, tmp, md_len + nb); in tls_prf_generic()