Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/misc/pkcs5/
A Dpkcs_5_1.c53 unsigned long outidx = 0, nb = 0; in _pkcs_5_alg1_common() local
112 nb = hash_descriptor[hash_idx]->hashsize; in _pkcs_5_alg1_common()
113 if(outidx+nb > *outlen) { in _pkcs_5_alg1_common()
114 nb = *outlen - outidx; in _pkcs_5_alg1_common()
116 if(nb > 0) { in _pkcs_5_alg1_common()
117 XMEMCPY(out+outidx, buf, nb); in _pkcs_5_alg1_common()
/optee_os/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()
/optee_os/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/out/arm/export-ta_arm32/include/
A Dstring_ext.h25 int consttime_memcmp(const void *p1, const void *p2, size_t nb);
/optee_os/out/arm/export-ta_arm64/include/
A Dstring_ext.h25 int consttime_memcmp(const void *p1, const void *p2, size_t nb);
/optee_os/lib/libutils/ext/include/
A Dstring_ext.h25 int consttime_memcmp(const void *p1, const void *p2, size_t nb);
/optee_os/lib/libmbedtls/mbedtls/library/
A Dssl_tls.c401 size_t nb, hs; in tls1_prf() local
425 nb = strlen( label ); in tls1_prf()
426 memcpy( tmp + 20, label, nb ); in tls1_prf()
427 memcpy( tmp + 20 + nb, random, rlen ); in tls1_prf()
428 nb += rlen; in tls1_prf()
445 mbedtls_md_hmac_update( &md_ctx, tmp + 20, nb ); in tls1_prf()
647 size_t nb; in tls_prf_generic() local
671 nb = strlen( label ); in tls_prf_generic()
672 memcpy( tmp + md_len, label, nb ); in tls_prf_generic()
673 memcpy( tmp + md_len + nb, random, rlen ); in tls_prf_generic()
[all …]

Completed in 25 milliseconds