Home
last modified time | relevance | path

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

12

/mbedtls-3.4.0/tests/suites/
Dtest_suite_nist_kw.function25 size_t output_len, i;
45 ciphertext1, &output_len,
47 TEST_ASSERT( output_len == sizeof( ciphertext1 ) );
55 ciphertext1, output_len,
56 plaintext, &output_len,
59 TEST_ASSERT( output_len == sizeof( plaintext ) );
72 output_len = sizeof( ciphertext1 );
81 ciphertext1, &output_len,
83 TEST_ASSERT( output_len == sizeof( ciphertext1 ) );
87 ciphertext2, &output_len,
[all …]
Dtest_suite_pkcs1_v21.function64 size_t output_len;
94 &output_len, message_str->x,
102 &output_len, message_str->x,
107 ASSERT_COMPARE( output, output_len, result_str->x, result_str->len );
Dtest_suite_psa_crypto_pake.function566 size_t output_len = 0;
682 output_buffer, buf_size, &output_len ),
687 output_buffer, buf_size, &output_len ),
692 output_buffer, buf_size, &output_len ),
695 TEST_ASSERT( output_len > 0 );
700 &output_len ),
705 output_buffer, size_zk_public - 1, &output_len ),
707 output_buffer, buf_size, &output_len ) ),
Dtest_suite_pkcs1_v15.function69 size_t output_len;
98 &output_len, message_str->x,
106 &output_len, message_str->x,
111 output_len,
Dtest_suite_gcm.function442 size_t output_len = input->len - 1;
448 ASSERT_ALLOC( output, output_len );
449 …CM_BUFFER_TOO_SMALL, mbedtls_gcm_update( &ctx, input->x, input->len, output, output_len, &olen ) );
Dtest_suite_ssl.function36 static int rng_get( void *p_rng, unsigned char *output, size_t output_len )
39 for( size_t i = 0; i < output_len; i++ )
278 * Gets \p output_len bytes from the ring buffer \p buf into the
285 * \retval \p output_len, if the data is available.
286 * \retval 0 <= value < \p output_len, if the data is not available.
290 unsigned char* output, size_t output_len )
297 if( output == NULL && output_len == 0 )
300 if( buf->content_length < output_len )
301 output_len = buf->content_length;
305 if( buf->start + output_len > buf->capacity )
[all …]
Dtest_suite_rsa.function415 size_t output_len;
440 output_len = 0;
444 &output_len, message_str->x, output,
450 output_len,
/mbedtls-3.4.0/programs/psa/
Dcrypto_examples.c67 size_t *output_len ) in cipher_operation() argument
72 *output_len = 0; in cipher_operation()
80 bytes_to_write, output + *output_len, in cipher_operation()
81 output_size - *output_len, &len ); in cipher_operation()
85 *output_len += len; in cipher_operation()
88 status = psa_cipher_finish( operation, output + *output_len, in cipher_operation()
89 output_size - *output_len, &len ); in cipher_operation()
91 *output_len += len; in cipher_operation()
106 size_t *output_len ) in cipher_encrypt() argument
120 output, output_size, output_len ); in cipher_encrypt()
[all …]
/mbedtls-3.4.0/library/
Dssl_client.c445 size_t output_len; /* Length of buffer used by function */ in ssl_write_client_hello_body() local
544 &output_len ); in ssl_write_client_hello_body()
547 p += output_len; in ssl_write_client_hello_body()
577 ret = ssl_write_hostname_ext( ssl, p, end, &output_len ); in ssl_write_client_hello_body()
580 p += output_len; in ssl_write_client_hello_body()
584 ret = ssl_write_alpn_ext( ssl, p, end, &output_len ); in ssl_write_client_hello_body()
587 p += output_len; in ssl_write_client_hello_body()
594 &output_len ); in ssl_write_client_hello_body()
597 p += output_len; in ssl_write_client_hello_body()
613 ret = ssl_write_supported_groups_ext( ssl, p, end, &output_len ); in ssl_write_client_hello_body()
[all …]
Dctr_drbg.c494 unsigned char *output, size_t output_len, in mbedtls_ctr_drbg_random_with_add() argument
505 if( output_len > MBEDTLS_CTR_DRBG_MAX_REQUEST ) in mbedtls_ctr_drbg_random_with_add()
531 while( output_len > 0 ) in mbedtls_ctr_drbg_random_with_add()
549 use_len = ( output_len > MBEDTLS_CTR_DRBG_BLOCKSIZE ) in mbedtls_ctr_drbg_random_with_add()
550 ? MBEDTLS_CTR_DRBG_BLOCKSIZE : output_len; in mbedtls_ctr_drbg_random_with_add()
556 output_len -= use_len; in mbedtls_ctr_drbg_random_with_add()
571 size_t output_len ) in mbedtls_ctr_drbg_random() argument
581 ret = mbedtls_ctr_drbg_random_with_add( ctx, output, output_len, NULL, 0 ); in mbedtls_ctr_drbg_random()
Dcipher.c762 static void add_pkcs_padding( unsigned char *output, size_t output_len, in add_pkcs_padding() argument
765 size_t padding_len = output_len - data_len; in add_pkcs_padding()
803 size_t output_len, size_t data_len ) in add_one_and_zeros_padding() argument
805 size_t padding_len = output_len - data_len; in add_one_and_zeros_padding()
842 size_t output_len, size_t data_len ) in add_zeros_and_len_padding() argument
844 size_t padding_len = output_len - data_len; in add_zeros_and_len_padding()
849 output[output_len - 1] = (unsigned char) padding_len; in add_zeros_and_len_padding()
882 size_t output_len, size_t data_len ) in add_zeros_padding() argument
886 for( i = data_len; i < output_len; i++ ) in add_zeros_padding()
1501 unsigned char *output, size_t output_len, in mbedtls_cipher_auth_encrypt_ext() argument
[all …]
Dssl_tls13_server.c2020 size_t output_len; in ssl_tls13_write_server_hello_body() local
2107 ssl, p, end, &output_len ) ) != 0 ) in ssl_tls13_write_server_hello_body()
2113 p += output_len; in ssl_tls13_write_server_hello_body()
2118 ret = ssl_tls13_write_hrr_key_share_ext( ssl, p, end, &output_len ); in ssl_tls13_write_server_hello_body()
2120 ret = ssl_tls13_write_key_share_ext( ssl, p, end, &output_len ); in ssl_tls13_write_server_hello_body()
2123 p += output_len; in ssl_tls13_write_server_hello_body()
2129 ret = ssl_tls13_write_server_pre_shared_key_ext( ssl, p, end, &output_len ); in ssl_tls13_write_server_hello_body()
2136 p += output_len; in ssl_tls13_write_server_hello_body()
2312 size_t output_len; in ssl_tls13_write_encrypted_extensions_body() local
2322 ((void) output_len); in ssl_tls13_write_encrypted_extensions_body()
[all …]
Dssl_tls13_client.c916 size_t output_len; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext() local
956 &output_len ); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
959 0, &output_len ); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
964 p += output_len; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
974 &output_len ); in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
978 p += output_len; in mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext()
1016 size_t output_len; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext() local
1031 &output_len ); in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1034 p += output_len; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1044 &output_len ); in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
[all …]
Dccm.c343 size_t *output_len ) in mbedtls_ccm_update() argument
366 *output_len = input_len; in mbedtls_ccm_update()
/mbedtls-3.4.0/programs/fuzz/
Dcommon.c59 int dummy_random( void *p_rng, unsigned char *output, size_t output_len ) in dummy_random() argument
68 ret = mbedtls_ctr_drbg_random(p_rng, output, output_len); in dummy_random()
77 for (i=0; i<output_len; i++) { in dummy_random()
Dcommon.h23 int dummy_random( void *p_rng, unsigned char *output, size_t output_len );
/mbedtls-3.4.0/programs/ssl/
Dssl_test_lib.c176 int rng_get( void *p_rng, unsigned char *output, size_t output_len ) in rng_get() argument
181 output, output_len ) ); in rng_get()
186 return( mbedtls_ctr_drbg_random( &rng->drbg, output, output_len ) ); in rng_get()
188 return( mbedtls_hmac_drbg_random( &rng->drbg, output, output_len ) ); in rng_get()
Dssl_test_lib.h207 int rng_get( void *p_rng, unsigned char *output, size_t output_len );
Dssl_server2.c1229 size_t *output_len, in ssl_async_resume() argument
1252 output, output_len, output_size, in ssl_async_resume()
1259 output, output_size, output_len, in ssl_async_resume()
/mbedtls-3.4.0/include/mbedtls/
Dctr_drbg.h502 unsigned char *output, size_t output_len,
530 unsigned char *output, size_t output_len );
Dhmac_drbg.h360 unsigned char *output, size_t output_len,
Dcipher.h1103 unsigned char *output, size_t output_len,
1159 unsigned char *output, size_t output_len,
Dccm.h482 size_t *output_len );
/mbedtls-3.4.0/programs/test/
Dselftest.c180 size_t output_len = 0; in create_entropy_seed_file() local
193 &output_len ); in create_entropy_seed_file()
197 if( MBEDTLS_ENTROPY_BLOCK_SIZE != output_len ) in create_entropy_seed_file()
/mbedtls-3.4.0/docs/
Dgetting_started.md215 size_t output_len;
254 output, sizeof(output), &output_len);
259 status = psa_cipher_finish(&operation, output + output_len,
260 sizeof(output) - output_len, &output_len);
300 size_t output_len;
338 output, sizeof(output), &output_len);
343 status = psa_cipher_finish(&operation, output + output_len,
344 sizeof(output) - output_len, &output_len);

12