/openthread-2.7.6/third_party/mbedtls/repo/programs/psa/ |
D | psa_constant_names_generated.c | 88 static int psa_snprint_key_type(char *buffer, size_t buffer_size, in psa_snprint_key_type() argument 93 …case PSA_KEY_TYPE_AES: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_AES", 16); break; in psa_snprint_key_type() 94 …case PSA_KEY_TYPE_ARC4: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_ARC4", 17); bre… in psa_snprint_key_type() 95 …case PSA_KEY_TYPE_CAMELLIA: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CAMELLIA", … in psa_snprint_key_type() 96 …case PSA_KEY_TYPE_CATEGORY_FLAG_PAIR: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_C… in psa_snprint_key_type() 97 …case PSA_KEY_TYPE_CATEGORY_KEY_PAIR: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CA… in psa_snprint_key_type() 98 …case PSA_KEY_TYPE_CATEGORY_PUBLIC_KEY: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_… in psa_snprint_key_type() 99 …case PSA_KEY_TYPE_CATEGORY_RAW: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CATEGOR… in psa_snprint_key_type() 100 …case PSA_KEY_TYPE_CATEGORY_SYMMETRIC: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_C… in psa_snprint_key_type() 101 …case PSA_KEY_TYPE_CHACHA20: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CHACHA20", … in psa_snprint_key_type() [all …]
|
D | psa_constant_names.c | 61 static void append(char **buffer, size_t buffer_size, in append() argument 66 if (*required_size < buffer_size) { in append() 72 static void append_integer(char **buffer, size_t buffer_size, in append_integer() argument 77 size_t n = snprintf(*buffer, buffer_size - *required_size, format, value); in append_integer() 78 if (n < buffer_size - *required_size) *buffer += n; in append_integer() 87 static void append_with_curve(char **buffer, size_t buffer_size, in append_with_curve() argument 93 append(buffer, buffer_size, required_size, string, length); in append_with_curve() 94 append(buffer, buffer_size, required_size, "(", 1); in append_with_curve() 96 append(buffer, buffer_size, required_size, in append_with_curve() 99 append_integer(buffer, buffer_size, required_size, in append_with_curve() [all …]
|
D | key_ladder_demo.c | 370 size_t buffer_size = 0; in wrap_data() local 388 buffer_size = PSA_AEAD_ENCRYPT_OUTPUT_SIZE( WRAPPING_ALG, input_size ); in wrap_data() 390 if( buffer_size < input_size ) in wrap_data() 399 SYS_CHECK( ( buffer = calloc( 1, buffer_size ) ) != NULL ); in wrap_data() 415 buffer, buffer_size, in wrap_data() 433 mbedtls_platform_zeroize( buffer, buffer_size ); in wrap_data()
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_asn1parse.function | 124 int get_len_step( const data_t *input, size_t buffer_size, 133 test_set_step( buffer_size ); 136 if( buffer_size == 0 ) 144 ASSERT_ALLOC_WEAK( buf, buffer_size ); 145 if( buffer_size > input->len ) 148 memset( buf + input->len, 'A', buffer_size - input->len ); 152 memcpy( buf, input->x, buffer_size ); 155 end = buf + buffer_size; 160 if( buffer_size >= input->len + actual_length ) 245 size_t buffer_size; [all …]
|
D | test_suite_psa_crypto.function | 173 size_t buffer_size, 198 *p = buffer + buffer_size; 1579 size_t buffer_size = byte_size + 1; 1584 ASSERT_ALLOC( buffer, buffer_size ); 1606 for( n = byte_size; n < buffer_size; n++ ) 1632 size_t buffer_size = /* Slight overapproximations */ 1641 ASSERT_ALLOC( buffer, buffer_size ); 1643 TEST_ASSERT( ( ret = construct_fake_rsa_key( buffer, buffer_size, &p, 4930 size_t buffer_size = 16; 4935 output_buffer, buffer_size ) [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/include/psa/ |
D | crypto_entropy_driver.h | 82 uint32_t buffer_size,
|
/openthread-2.7.6/third_party/mbedtls/repo/library/ |
D | psa_crypto_driver_wrappers.c | 258 size_t buffer_size = 0; in get_expected_key_size() local 266 buffer_size = PSA_KEY_EXPORT_MAX_SIZE( key_type, key_bits ); in get_expected_key_size() 268 if( buffer_size == 0 ) in get_expected_key_size() 271 *expected_size = buffer_size; in get_expected_key_size()
|
D | pkwrite.c | 200 size_t buffer_size; in mbedtls_pk_write_pubkey() local 206 buffer_size = (size_t)( *p - start ); in mbedtls_pk_write_pubkey() 207 if ( psa_export_public_key( *key_id, start, buffer_size, &len ) in mbedtls_pk_write_pubkey()
|
/openthread-2.7.6/third_party/mbedtls/repo/programs/ssl/ |
D | ssl_server2.c | 595 uint16_t buffer_size; /* IO buffer size */ member 1980 opt.buffer_size = DFL_IO_BUF_LEN; in main() 2103 opt.buffer_size = atoi( q ); in main() 2104 if( opt.buffer_size < 1 || opt.buffer_size > MBEDTLS_SSL_MAX_CONTENT_LEN + 1 ) in main() 2112 if( opt.buffer_size < opt.response_size ) in main() 2113 opt.buffer_size = opt.response_size; in main() 2541 buf = mbedtls_calloc( 1, opt.buffer_size + 1 ); in main() 2544 mbedtls_printf( "Could not allocate %u bytes\n", opt.buffer_size ); in main() 3978 len = opt.buffer_size - 1; in main() 3979 memset( buf, 0, opt.buffer_size ); in main() [all …]
|
/openthread-2.7.6/tests/scripts/thread-cert/ |
D | test_lowpan.py | 3516 fragments_buffer = lowpan.LowpanFragmentsBuffer(buffer_size=(length - 1)) 3525 fragments_buffer = lowpan.LowpanFragmentsBuffer(buffer_size=length) 3541 fragments_buffer = lowpan.LowpanFragmentsBuffer(buffer_size=random.randint(4, 1280)) 3551 fragments_buffer = lowpan.LowpanFragmentsBuffer(buffer_size=1280) 3561 fragments_buffer = lowpan.LowpanFragmentsBuffer(buffer_size=length) 3573 fragments_buffer = lowpan.LowpanFragmentsBuffer(buffer_size=len(data)) 3583 buffer_size = 42 3584 fragments_buffer = lowpan.LowpanFragmentsBuffer(buffer_size=buffer_size)
|
D | lowpan.py | 923 def __init__(self, buffer_size): argument 924 self._buffer = [None] * buffer_size
|