/openthread-3.6.0/third_party/mbedtls/repo/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 | 62 size_t output_len; 91 &output_len, message_str->x, 100 &output_len, message_str->x, 105 ASSERT_COMPARE( output, output_len, result_str->x, result_str->len );
|
D | test_suite_pkcs1_v15.function | 67 size_t output_len; 95 &output_len, message_str->x, 103 &output_len, message_str->x, 108 output_len,
|
D | test_suite_ssl.function | 213 * Gets \p output_len bytes from the ring buffer \p buf into the 220 * \retval \p output_len, if the data is available. 221 * \retval 0 <= value < \p output_len, if the data is not available. 225 unsigned char* output, size_t output_len ) 232 if( output == NULL && output_len == 0 ) 235 if( buf->content_length < output_len ) 236 output_len = buf->content_length; 240 if( buf->start + output_len > buf->capacity ) 242 overflow = ( buf->start + output_len ) % buf->capacity; 247 memcpy( output, buf->buffer + buf->start, output_len - overflow ); [all …]
|
D | test_suite_rsa.function | 830 size_t output_len; 853 output_len = 0; 857 &output_len, message_str->x, output, 863 output_len,
|
/openthread-3.6.0/third_party/mbedtls/repo/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 …]
|
/openthread-3.6.0/third_party/mbedtls/repo/library/ |
D | pkcs11.c | 133 size_t input_len, output_len; in mbedtls_pkcs11_decrypt() local 141 output_len = input_len = ctx->len; in mbedtls_pkcs11_decrypt() 148 input_len, NULL, &output_len ) != CKR_OK ) in mbedtls_pkcs11_decrypt() 153 if( output_len > output_max_len ) in mbedtls_pkcs11_decrypt() 157 input_len, output, &output_len ) != CKR_OK ) in mbedtls_pkcs11_decrypt() 161 *olen = output_len; in mbedtls_pkcs11_decrypt()
|
D | ctr_drbg.c | 515 unsigned char *output, size_t output_len, in mbedtls_ctr_drbg_random_with_add() argument 526 if( output_len > MBEDTLS_CTR_DRBG_MAX_REQUEST ) in mbedtls_ctr_drbg_random_with_add() 552 while( output_len > 0 ) in mbedtls_ctr_drbg_random_with_add() 570 use_len = ( output_len > MBEDTLS_CTR_DRBG_BLOCKSIZE ) in mbedtls_ctr_drbg_random_with_add() 571 ? MBEDTLS_CTR_DRBG_BLOCKSIZE : output_len; in mbedtls_ctr_drbg_random_with_add() 577 output_len -= use_len; in mbedtls_ctr_drbg_random_with_add() 592 size_t output_len ) in mbedtls_ctr_drbg_random() argument 602 ret = mbedtls_ctr_drbg_random_with_add( ctx, output, output_len, NULL, 0 ); in mbedtls_ctr_drbg_random()
|
D | cipher.c | 729 static void add_pkcs_padding( unsigned char *output, size_t output_len, in add_pkcs_padding() argument 732 size_t padding_len = output_len - data_len; in add_pkcs_padding() 770 size_t output_len, size_t data_len ) in add_one_and_zeros_padding() argument 772 size_t padding_len = output_len - data_len; in add_one_and_zeros_padding() 809 size_t output_len, size_t data_len ) in add_zeros_and_len_padding() argument 811 size_t padding_len = output_len - data_len; in add_zeros_and_len_padding() 816 output[output_len - 1] = (unsigned char) padding_len; in add_zeros_and_len_padding() 849 size_t output_len, size_t data_len ) in add_zeros_padding() argument 853 for( i = data_len; i < output_len; i++ ) in add_zeros_padding() 1522 unsigned char *output, size_t output_len, in mbedtls_cipher_auth_encrypt_ext() argument [all …]
|
D | ecp.c | 166 unsigned char *output, size_t output_len ) in ecp_drbg_random() argument 168 return( mbedtls_hmac_drbg_random( p_rng, output, output_len ) ); in ecp_drbg_random() 217 unsigned char *output, size_t output_len ) in ecp_drbg_random() argument 219 return( mbedtls_ctr_drbg_random( p_rng, output, output_len ) ); in ecp_drbg_random()
|
/openthread-3.6.0/third_party/mbedtls/repo/programs/fuzz/ |
D | common.c | 57 int dummy_random( void *p_rng, unsigned char *output, size_t output_len ) in dummy_random() argument 64 ret = mbedtls_ctr_drbg_random(p_rng, output, output_len); in dummy_random() 69 for (i=0; i<output_len; i++) { in dummy_random()
|
D | common.h | 16 int dummy_random( void *p_rng, unsigned char *output, size_t output_len );
|
/openthread-3.6.0/third_party/mbedtls/repo/programs/ssl/ |
D | ssl_test_lib.c | 172 int rng_get( void *p_rng, unsigned char *output, size_t output_len ) in rng_get() argument 177 output, output_len ) ); in rng_get() 182 return( mbedtls_ctr_drbg_random( &rng->drbg, output, output_len ) ); in rng_get() 184 return( mbedtls_hmac_drbg_random( &rng->drbg, output, output_len ) ); in rng_get()
|
D | ssl_test_lib.h | 229 int rng_get( void *p_rng, unsigned char *output, size_t output_len );
|
D | ssl_server2.c | 1123 size_t *output_len, in ssl_async_resume() argument 1146 output, output_len, output_size, in ssl_async_resume() 1153 output, output_len, in ssl_async_resume()
|
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/ |
D | ctr_drbg.h | 505 unsigned char *output, size_t output_len, 533 unsigned char *output, size_t output_len );
|
D | hmac_drbg.h | 363 unsigned char *output, size_t output_len,
|
D | cipher.h | 1039 unsigned char *output, size_t output_len, 1095 unsigned char *output, size_t output_len,
|
D | ssl.h | 887 size_t *output_len,
|
/openthread-3.6.0/third_party/mbedtls/repo/programs/test/ |
D | selftest.c | 201 size_t output_len = 0; in create_entropy_seed_file() local 214 &output_len ); in create_entropy_seed_file() 218 if( MBEDTLS_ENTROPY_BLOCK_SIZE != output_len ) in create_entropy_seed_file()
|
/openthread-3.6.0/third_party/mbedtls/repo/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);
|