Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 30) sorted by relevance

12

/optee_os/lib/libmbedtls/mbedtls/library/
A Dplatform.c283 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_read() argument
291 if( ( n = fread( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_read()
294 mbedtls_platform_zeroize( buf, buf_len ); in mbedtls_platform_std_nv_seed_read()
302 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_write() argument
310 if( ( n = fwrite( buf, 1, buf_len, file ) ) != buf_len ) in mbedtls_platform_std_nv_seed_write()
329 ((void) buf_len); in platform_nv_seed_read_uninit()
343 ((void) buf_len); in platform_nv_seed_write_uninit()
350 int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len ) =
352 int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len ) =
356 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ), in mbedtls_platform_set_nv_seed() argument
[all …]
A Dentropy.c559 static int mbedtls_entropy_source_self_test_gather( unsigned char *buf, size_t buf_len ) in mbedtls_entropy_source_self_test_gather() argument
564 size_t attempts = buf_len; in mbedtls_entropy_source_self_test_gather()
566 while( attempts > 0 && entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
569 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
576 if( entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
586 size_t buf_len ) in mbedtls_entropy_source_self_test_check_bits() argument
592 for( i = 0; i < buf_len; i++ ) in mbedtls_entropy_source_self_test_check_bits()
A Dpk_wrap.c973 size_t buf_len ) in pk_ecdsa_sig_asn1_from_psa() argument
978 unsigned char *p = sig + buf_len; in pk_ecdsa_sig_asn1_from_psa()
1014 size_t buf_len; in pk_opaque_sign_wrap()
1028 buf_len = MBEDTLS_ECDSA_MAX_SIG_LEN( psa_get_key_bits( &attributes ) ); in pk_opaque_sign_wrap()
1030 if( buf_len > MBEDTLS_PK_SIGNATURE_MAX_SIZE ) in pk_opaque_sign_wrap()
1035 sig, buf_len, sig_len ); in pk_opaque_sign_wrap()
1040 return( pk_ecdsa_sig_asn1_from_psa( sig, sig_len, buf_len ) ); in pk_opaque_sign_wrap()
A Dssl_msg.c606 || rec->buf_len < rec->data_offset in mbedtls_ssl_encrypt_buf()
607 || rec->buf_len - rec->data_offset < rec->data_len in mbedtls_ssl_encrypt_buf()
1307 rec->buf_len < rec->data_offset || in mbedtls_ssl_decrypt_buf()
1308 rec->buf_len - rec->data_offset < rec->data_len ) in mbedtls_ssl_decrypt_buf()
3469 if( buf_len < 28 ) in ssl_check_dtls_clihlo_cookie()
3774 rec->buf_len = rec->data_offset + rec->data_len; in ssl_parse_record_header()
3878 rec->buf, rec->buf_len ); in ssl_prepare_record_content()
4672 hs->buffering.future_record.len = rec->buf_len; in ssl_buffer_future_record()
4685 hs->buffering.total_bytes_buffered += rec->buf_len; in ssl_buffer_future_record()
4757 ssl->next_record_offset = rec.buf_len; in ssl_get_next_record()
[all …]
A Dpem.c435 unsigned char *buf, size_t buf_len, size_t *olen ) in mbedtls_pem_write_buffer() argument
444 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer()
482 memset( buf + *olen, 0, buf_len - *olen ); in mbedtls_pem_write_buffer()
A Dssl_tls.c5359 if( used <= buf_len ) in ssl_session_save()
5384 if( used <= buf_len ) in ssl_session_save()
5416 if( used <= buf_len ) in ssl_session_save()
5459 if( used <= buf_len ) in ssl_session_save()
5484 if( used <= buf_len ) in ssl_session_save()
5491 if( used <= buf_len ) in ssl_session_save()
5498 if( used <= buf_len ) in ssl_session_save()
5505 if( used > buf_len ) in ssl_session_save()
6280 if( used <= buf_len ) in mbedtls_ssl_context_save()
6295 if( used <= buf_len ) in mbedtls_ssl_context_save()
[all …]
A Dctr_drbg.c138 size_t buf_len, use_len; in block_cipher_df() local
164 buf_len = MBEDTLS_CTR_DRBG_BLOCKSIZE + 8 + data_len + 1; in block_cipher_df()
182 use_len = buf_len; in block_cipher_df()
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dplatform.h330 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
331 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
335 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
336 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
348 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
349 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
A Dpem.h137 unsigned char *buf, size_t buf_len, size_t *olen );
A Dssl.h2522 size_t buf_len,
4203 size_t buf_len,
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dplatform.h330 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
331 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
335 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
336 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
348 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
349 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
A Dpem.h137 unsigned char *buf, size_t buf_len, size_t *olen );
A Dssl.h2522 size_t buf_len,
4203 size_t buf_len,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dplatform.h330 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
331 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
335 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
336 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
348 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
349 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
A Dpem.h137 unsigned char *buf, size_t buf_len, size_t *olen );
A Dssl.h2522 size_t buf_len,
4203 size_t buf_len,
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dplatform.h330 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
331 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
335 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
336 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
348 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
349 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
A Dpem.h137 unsigned char *buf, size_t buf_len, size_t *olen );
A Dssl.h2522 size_t buf_len,
4203 size_t buf_len,
A Dssl_internal.h844 size_t buf_len; /* Buffer length */ member
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dplatform.h330 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
331 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
335 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
336 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
348 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
349 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
A Dpem.h137 unsigned char *buf, size_t buf_len, size_t *olen );
A Dssl.h2522 size_t buf_len,
4203 size_t buf_len,
/optee_os/core/drivers/crypto/se050/core/
A Drsa.c197 size_t buf_len = src_len; in decrypt_es() local
213 buf = mempool_calloc(mempool_default, 1, buf_len); in decrypt_es()
219 st = sss_se05x_asymmetric_decrypt(&ctx, src, src_len, buf, &buf_len); in decrypt_es()
225 if (buf_len > *dst_len) { in decrypt_es()
226 *dst_len = buf_len; in decrypt_es()
231 *dst_len = buf_len; in decrypt_es()
232 memcpy(dst, buf, buf_len); in decrypt_es()
/optee_os/ta/pkcs11/src/
A Dattributes.c34 size_t buf_len = sizeof(struct obj_attrs) + (*head)->attrs_size; in add_attribute() local
40 rc = serialize(bstart, &buf_len, &data32, sizeof(uint32_t)); in add_attribute()
45 rc = serialize(bstart, &buf_len, &data32, sizeof(uint32_t)); in add_attribute()
49 rc = serialize(bstart, &buf_len, data, size); in add_attribute()

Completed in 100 milliseconds

12