/mbedtls-3.4.0/tests/suites/ |
D | test_suite_nist_kw.function | 25 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 …]
|
D | test_suite_pkcs1_v21.function | 64 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 );
|
D | test_suite_psa_crypto_pake.function | 566 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 ) ),
|
D | test_suite_pkcs1_v15.function | 69 size_t output_len; 98 &output_len, message_str->x, 106 &output_len, message_str->x, 111 output_len,
|
D | test_suite_gcm.function | 442 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 ) );
|
D | test_suite_ssl.function | 36 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 …]
|
D | test_suite_rsa.function | 415 size_t output_len; 440 output_len = 0; 444 &output_len, message_str->x, output, 450 output_len,
|
/mbedtls-3.4.0/programs/psa/ |
D | crypto_examples.c | 67 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/ |
D | ssl_client.c | 445 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 …]
|
D | ctr_drbg.c | 494 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()
|
D | cipher.c | 762 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 …]
|
D | ssl_tls13_server.c | 2020 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 …]
|
D | ssl_tls13_client.c | 916 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 …]
|
D | ccm.c | 343 size_t *output_len ) in mbedtls_ccm_update() argument 366 *output_len = input_len; in mbedtls_ccm_update()
|
/mbedtls-3.4.0/programs/fuzz/ |
D | common.c | 59 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()
|
D | common.h | 23 int dummy_random( void *p_rng, unsigned char *output, size_t output_len );
|
/mbedtls-3.4.0/programs/ssl/ |
D | ssl_test_lib.c | 176 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()
|
D | ssl_test_lib.h | 207 int rng_get( void *p_rng, unsigned char *output, size_t output_len );
|
D | ssl_server2.c | 1229 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/ |
D | ctr_drbg.h | 502 unsigned char *output, size_t output_len, 530 unsigned char *output, size_t output_len );
|
D | hmac_drbg.h | 360 unsigned char *output, size_t output_len,
|
D | cipher.h | 1103 unsigned char *output, size_t output_len, 1159 unsigned char *output, size_t output_len,
|
D | ccm.h | 482 size_t *output_len );
|
/mbedtls-3.4.0/programs/test/ |
D | selftest.c | 180 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/ |
D | getting_started.md | 215 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);
|