Home
last modified time | relevance | path

Searched refs:use_len (Results 1 – 20 of 20) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
A Dpem.c82 size_t use_len; in pem_pbkdf1() local
121 use_len = 16; in pem_pbkdf1()
123 use_len = keylen - 16; in pem_pbkdf1()
267 *use_len = end - data; in mbedtls_pem_read_buffer()
444 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer()
446 *olen = use_len + add_len; in mbedtls_pem_write_buffer()
450 if( use_len != 0 && in mbedtls_pem_write_buffer()
454 if( ( ret = mbedtls_base64_encode( encode_buf, use_len, &use_len, der_data, in mbedtls_pem_write_buffer()
465 while( use_len ) in mbedtls_pem_write_buffer()
467 len = ( use_len > 64 ) ? 64 : use_len; in mbedtls_pem_write_buffer()
[all …]
A Dccm.c219 size_t use_len; in ccm_auth_crypt() local
228 memcpy( b + 2, src, use_len ); in ccm_auth_crypt()
229 len_left -= use_len; in ccm_auth_crypt()
230 src += use_len; in ccm_auth_crypt()
239 memcpy( b, src, use_len ); in ccm_auth_crypt()
242 len_left -= use_len; in ccm_auth_crypt()
243 src += use_len; in ccm_auth_crypt()
279 memcpy( b, src, use_len ); in ccm_auth_crypt()
292 dst += use_len; in ccm_auth_crypt()
293 src += use_len; in ccm_auth_crypt()
[all …]
A Dpkcs12.c232 size_t use_len; in pkcs12_fill_buffer() local
236 use_len = ( data_len > fill_len ) ? fill_len : data_len; in pkcs12_fill_buffer()
237 memcpy( p, filler, use_len ); in pkcs12_fill_buffer()
238 p += use_len; in pkcs12_fill_buffer()
239 data_len -= use_len; in pkcs12_fill_buffer()
257 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local
312 use_len = ( datalen > hlen ) ? hlen : datalen; in mbedtls_pkcs12_derivation()
313 memcpy( p, hash_output, use_len ); in mbedtls_pkcs12_derivation()
314 datalen -= use_len; in mbedtls_pkcs12_derivation()
315 p += use_len; in mbedtls_pkcs12_derivation()
A Dgcm.c282 size_t use_len, olen = 0; in mbedtls_gcm_starts() local
324 iv_len -= use_len; in mbedtls_gcm_starts()
325 p += use_len; in mbedtls_gcm_starts()
346 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_starts()
351 add_len -= use_len; in mbedtls_gcm_starts()
352 p += use_len; in mbedtls_gcm_starts()
368 size_t use_len, olen = 0; in mbedtls_gcm_update() local
402 for( i = 0; i < use_len; i++ ) in mbedtls_gcm_update()
413 length -= use_len; in mbedtls_gcm_update()
414 p += use_len; in mbedtls_gcm_update()
[all …]
A Dhavege.c212 size_t use_len; in mbedtls_havege_random() local
218 use_len = len; in mbedtls_havege_random()
219 if( use_len > sizeof( val ) ) in mbedtls_havege_random()
220 use_len = sizeof( val ); in mbedtls_havege_random()
228 memcpy( p, &val, use_len ); in mbedtls_havege_random()
230 len -= use_len; in mbedtls_havege_random()
231 p += use_len; in mbedtls_havege_random()
A Dentropy_poll.c273 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll() local
281 if( len < use_len ) in mbedtls_nv_seed_poll()
282 use_len = len; in mbedtls_nv_seed_poll()
284 memcpy( output, buf, use_len ); in mbedtls_nv_seed_poll()
285 *olen = use_len; in mbedtls_nv_seed_poll()
A Dctr_drbg.c138 size_t buf_len, use_len; in block_cipher_df() local
182 use_len = buf_len; in block_cipher_df()
184 while( use_len > 0 ) in block_cipher_df()
189 use_len -= ( use_len >= MBEDTLS_CTR_DRBG_BLOCKSIZE ) ? in block_cipher_df()
190 MBEDTLS_CTR_DRBG_BLOCKSIZE : use_len; in block_cipher_df()
527 size_t use_len; in mbedtls_ctr_drbg_random_with_add() local
573 use_len = ( output_len > MBEDTLS_CTR_DRBG_BLOCKSIZE ) in mbedtls_ctr_drbg_random_with_add()
578 memcpy( p, tmp, use_len ); in mbedtls_ctr_drbg_random_with_add()
579 p += use_len; in mbedtls_ctr_drbg_random_with_add()
580 output_len -= use_len; in mbedtls_ctr_drbg_random_with_add()
A Dpkcs5.c230 size_t use_len; in mbedtls_pkcs5_pbkdf2_hmac() local
281 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac()
282 memcpy( out_p, work, use_len ); in mbedtls_pkcs5_pbkdf2_hmac()
284 key_length -= (uint32_t) use_len; in mbedtls_pkcs5_pbkdf2_hmac()
285 out_p += use_len; in mbedtls_pkcs5_pbkdf2_hmac()
A Dentropy.c185 size_t use_len = len; in entropy_update() local
189 if( use_len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in entropy_update()
199 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update()
203 header[1] = use_len & 0xFF; in entropy_update()
218 ret = mbedtls_sha512_update_ret( &ctx->accumulator, p, use_len ); in entropy_update()
227 ret = mbedtls_sha256_update_ret( &ctx->accumulator, p, use_len ); in entropy_update()
A Dx509_csr.c261 size_t use_len; in mbedtls_x509_csr_parse() local
279 buf, NULL, 0, &use_len ); in mbedtls_x509_csr_parse()
285 buf, NULL, 0, &use_len ); in mbedtls_x509_csr_parse()
A Dhmac_drbg.c368 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add() local
378 memcpy( out, ctx->V, use_len ); in mbedtls_hmac_drbg_random_with_add()
379 out += use_len; in mbedtls_hmac_drbg_random_with_add()
380 left -= use_len; in mbedtls_hmac_drbg_random_with_add()
A Dx509_crl.c538 size_t use_len = 0; in mbedtls_x509_crl_parse() local
557 buf, NULL, 0, &use_len ); in mbedtls_x509_crl_parse()
566 buflen -= use_len; in mbedtls_x509_crl_parse()
567 buf += use_len; in mbedtls_x509_crl_parse()
A Decjpake.c980 size_t use_len = len > 4 ? 4 : len; in ecjpake_lgc() local
982 memcpy( out, &x, use_len ); in ecjpake_lgc()
983 out += use_len; in ecjpake_lgc()
984 len -= use_len; in ecjpake_lgc()
A Dx509_crt.c1456 size_t use_len; in mbedtls_x509_crt_parse() local
1463 buf, NULL, 0, &use_len ); in mbedtls_x509_crt_parse()
1470 buflen -= use_len; in mbedtls_x509_crt_parse()
1471 buf += use_len; in mbedtls_x509_crt_parse()
1484 buflen -= use_len; in mbedtls_x509_crt_parse()
1485 buf += use_len; in mbedtls_x509_crt_parse()
A Drsa.c1111 size_t i, use_len; in mgf_mask() local
1124 use_len = hlen; in mgf_mask()
1126 use_len = dlen; in mgf_mask()
1137 for( i = 0; i < use_len; ++i ) in mgf_mask()
1142 dlen -= use_len; in mgf_mask()
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dpem.h98 size_t pwdlen, size_t *use_len );
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dpem.h98 size_t pwdlen, size_t *use_len );
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dpem.h98 size_t pwdlen, size_t *use_len );
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dpem.h98 size_t pwdlen, size_t *use_len );
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dpem.h98 size_t pwdlen, size_t *use_len );

Completed in 32 milliseconds