Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 9 of 9) sorted by relevance

/openthread-3.4.0/third_party/mbedtls/repo/programs/psa/
Dpsa_constant_names_generated.c92 static int psa_snprint_key_type(char *buffer, size_t buffer_size, in psa_snprint_key_type() argument
97 …case PSA_KEY_TYPE_AES: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_AES", 16); break; in psa_snprint_key_type()
98 …case PSA_KEY_TYPE_ARC4: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_ARC4", 17); bre… in psa_snprint_key_type()
99 …case PSA_KEY_TYPE_ARIA: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_ARIA", 17); bre… in psa_snprint_key_type()
100 …case PSA_KEY_TYPE_CAMELLIA: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CAMELLIA", … in psa_snprint_key_type()
101 …case PSA_KEY_TYPE_CATEGORY_FLAG_PAIR: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_C… in psa_snprint_key_type()
102 …case PSA_KEY_TYPE_CATEGORY_KEY_PAIR: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CA… in psa_snprint_key_type()
103 …case PSA_KEY_TYPE_CATEGORY_PUBLIC_KEY: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_… in psa_snprint_key_type()
104 …case PSA_KEY_TYPE_CATEGORY_RAW: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CATEGOR… in psa_snprint_key_type()
105 …case PSA_KEY_TYPE_CATEGORY_SYMMETRIC: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_C… in psa_snprint_key_type()
[all …]
Dpsa_constant_names.c61 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 …]
Dkey_ladder_demo.c372 size_t buffer_size = 0; in wrap_data() local
392 buffer_size = in wrap_data()
395 if( buffer_size < input_size ) in wrap_data()
404 SYS_CHECK( ( buffer = calloc( 1, buffer_size ) ) != NULL ); in wrap_data()
420 buffer, buffer_size, in wrap_data()
438 mbedtls_platform_zeroize( buffer, buffer_size ); in wrap_data()
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_asn1parse.function124 int get_len_step( const data_t *input, size_t buffer_size,
133 mbedtls_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 …]
Dtest_suite_psa_crypto.function79 size_t buffer_size,
104 *p = buffer + buffer_size;
461 size_t buffer_size = byte_size + 1;
466 ASSERT_ALLOC_WEAK( buffer, buffer_size );
489 for( n = byte_size; n < buffer_size; n++ )
515 size_t buffer_size = /* Slight overapproximations */
524 ASSERT_ALLOC( buffer, buffer_size );
526 TEST_ASSERT( ( ret = construct_fake_rsa_key( buffer, buffer_size, &p,
4557 size_t buffer_size = 16;
4562 output_buffer, buffer_size )
[all …]
/openthread-3.4.0/third_party/mbedtls/repo/library/
Dpkwrite.c200 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-3.4.0/third_party/mbedtls/repo/programs/ssl/
Dssl_server2.c553 uint16_t buffer_size; /* IO buffer size */ member
1459 opt.buffer_size = DFL_IO_BUF_LEN; in main()
1582 opt.buffer_size = atoi( q ); in main()
1583 if( opt.buffer_size < 1 || opt.buffer_size > MBEDTLS_SSL_MAX_CONTENT_LEN + 1 ) in main()
1591 if( opt.buffer_size < opt.response_size ) in main()
1592 opt.buffer_size = opt.response_size; in main()
2020 buf = mbedtls_calloc( 1, opt.buffer_size + 1 ); in main()
2023 mbedtls_printf( "Could not allocate %u bytes\n", opt.buffer_size ); in main()
3435 len = opt.buffer_size - 1; in main()
3436 memset( buf, 0, opt.buffer_size ); in main()
[all …]
/openthread-3.4.0/tests/scripts/thread-cert/
Dtest_lowpan.py3516 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)
Dlowpan.py923 def __init__(self, buffer_size): argument
924 self._buffer = [None] * buffer_size