Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 43) sorted by relevance

12

/mbedtls-development/library/
A Dasn1write.c41 if( *p - start < 1 ) in mbedtls_asn1_write_len()
50 if( *p - start < 2 ) in mbedtls_asn1_write_len()
60 if( *p - start < 3 ) in mbedtls_asn1_write_len()
71 if( *p - start < 4 ) in mbedtls_asn1_write_len()
85 if( *p - start < 5 ) in mbedtls_asn1_write_len()
103 if( *p - start < 1 ) in mbedtls_asn1_write_tag()
116 if( *p < start || (size_t)( *p - start ) < size ) in mbedtls_asn1_write_raw_buffer()
136 if( *p < start || (size_t)( *p - start ) < len ) in mbedtls_asn1_write_mpi()
147 if( *p - start < 1 ) in mbedtls_asn1_write_mpi()
217 if( *p - start < 1 ) in mbedtls_asn1_write_bool()
[all …]
A Dx509_create.c253 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, in x509_write_name()
256 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) ); in x509_write_name()
257 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, in x509_write_name()
261 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) ); in x509_write_name()
262 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, in x509_write_name()
269 int mbedtls_x509_write_names( unsigned char **p, unsigned char *start, in mbedtls_x509_write_names() argument
278 MBEDTLS_ASN1_CHK_ADD( len, x509_write_name( p, start, cur ) ); in mbedtls_x509_write_names()
282 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) ); in mbedtls_x509_write_names()
289 int mbedtls_x509_write_sig( unsigned char **p, unsigned char *start, in mbedtls_x509_write_sig() argument
296 if( *p < start || (size_t)( *p - start ) < size ) in mbedtls_x509_write_sig()
[all …]
A Dtiming.c41 LARGE_INTEGER start; member
54 struct timeval start; member
86 QueryPerformanceCounter( &t->start ); in mbedtls_timing_get_timer()
95 delta = (unsigned long)( ( now.QuadPart - t->start.QuadPart ) * 1000ul in mbedtls_timing_get_timer()
109 gettimeofday( &t->start, NULL ); in mbedtls_timing_get_timer()
117 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer()
118 + ( now.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
A Dpkwrite.c72 static int pk_write_rsa_pubkey( unsigned char **p, unsigned char *start, in pk_write_rsa_pubkey() argument
83 ( ret = mbedtls_asn1_write_mpi( p, start, &T ) ) < 0 ) in pk_write_rsa_pubkey()
89 ( ret = mbedtls_asn1_write_mpi( p, start, &T ) ) < 0 ) in pk_write_rsa_pubkey()
111 static int pk_write_ec_pubkey( unsigned char **p, unsigned char *start, in pk_write_ec_pubkey() argument
125 if( *p < start || (size_t)( *p - start ) < len ) in pk_write_ec_pubkey()
139 static int pk_write_ec_param( unsigned char **p, unsigned char *start, in pk_write_ec_param() argument
176 int mbedtls_pk_write_pubkey( unsigned char **p, unsigned char *start, in mbedtls_pk_write_pubkey() argument
184 PK_VALIDATE_RET( start != NULL ); in mbedtls_pk_write_pubkey()
203 if ( *p < start ) in mbedtls_pk_write_pubkey()
206 buffer_size = (size_t)( *p - start ); in mbedtls_pk_write_pubkey()
[all …]
A Dssl_ticket.c198 unsigned char *start, in mbedtls_ssl_ticket_write() argument
206 unsigned char *key_name = start; in mbedtls_ssl_ticket_write()
207 unsigned char *iv = start + TICKET_KEY_NAME_BYTES; in mbedtls_ssl_ticket_write()
219 MBEDTLS_SSL_CHK_BUF_PTR( start, end, TICKET_MIN_LEN ); in mbedtls_ssl_ticket_write()
369 if( current_time < session->start || in mbedtls_ssl_ticket_parse()
370 (uint32_t)( current_time - session->start ) > ctx->ticket_lifetime ) in mbedtls_ssl_ticket_parse()
A Dx509write_crt.c293 static int x509_write_time( unsigned char **p, unsigned char *start, in x509_write_time() argument
304 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_raw_buffer( p, start, in x509_write_time()
307 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) ); in x509_write_time()
308 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, in x509_write_time()
313 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_raw_buffer( p, start, in x509_write_time()
316 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) ); in x509_write_time()
317 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, in x509_write_time()
A Ddebug.c318 const char *start, *cur; in debug_print_line_by_line() local
320 start = text; in debug_print_line_by_line()
325 size_t len = cur - start + 1; in debug_print_line_by_line()
329 memcpy( str, start, len ); in debug_print_line_by_line()
334 start = cur + 1; in debug_print_line_by_line()
A Dasn1parse.c254 unsigned char *start, size_t len ), in mbedtls_asn1_traverse_sequence_of() argument
337 unsigned char *start, in asn1_get_sequence_of_cb() argument
356 cur->buf.p = start; in asn1_get_sequence_of_cb()
A Dpk_wrap.c944 static int asn1_write_mpibuf( unsigned char **p, unsigned char *start, in asn1_write_mpibuf() argument
950 if( (size_t)( *p - start ) < n_len ) in asn1_write_mpibuf()
955 memmove( *p, start, len ); in asn1_write_mpibuf()
974 if( *p - start < 1 ) in asn1_write_mpibuf()
981 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) ); in asn1_write_mpibuf()
982 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, in asn1_write_mpibuf()
A Dssl_tls.c2200 unsigned char *start, size_t len ) in ssl_remember_peer_crt_digest() argument
2219 start, len, in ssl_remember_peer_crt_digest()
2231 unsigned char *start, size_t len ) in ssl_remember_peer_pubkey() argument
2233 unsigned char *end = start + len; in ssl_remember_peer_pubkey()
2238 ret = mbedtls_pk_parse_subpubkey( &start, end, in ssl_remember_peer_pubkey()
4692 uint64_t start; in ssl_session_save_tls12() local
4708 start = (uint64_t) session->start; in ssl_session_save_tls12()
4710 MBEDTLS_PUT_UINT64_BE( start, p, 0 ); in ssl_session_save_tls12()
4915 uint64_t start; in ssl_session_load_tls12() local
4933 start = ( (uint64_t) p[0] << 56 ) | in ssl_session_load_tls12()
[all …]
/mbedtls-development/include/mbedtls/
A Dasn1write.h54 int mbedtls_asn1_write_len( unsigned char **p, const unsigned char *start,
68 int mbedtls_asn1_write_tag( unsigned char **p, const unsigned char *start,
84 int mbedtls_asn1_write_raw_buffer( unsigned char **p, const unsigned char *start,
102 int mbedtls_asn1_write_mpi( unsigned char **p, const unsigned char *start,
118 int mbedtls_asn1_write_null( unsigned char **p, const unsigned char *start );
134 int mbedtls_asn1_write_oid( unsigned char **p, const unsigned char *start,
153 const unsigned char *start,
170 int mbedtls_asn1_write_bool( unsigned char **p, const unsigned char *start,
241 const unsigned char *start,
294 int mbedtls_asn1_write_bitstring( unsigned char **p, const unsigned char *start,
[all …]
A Dx509.h346 int mbedtls_x509_write_extensions( unsigned char **p, unsigned char *start,
348 int mbedtls_x509_write_names( unsigned char **p, unsigned char *start,
350 int mbedtls_x509_write_sig( unsigned char **p, unsigned char *start,
A Dasn1.h531 unsigned char* start, size_t len ),
A Dpk.h867 int mbedtls_pk_write_pubkey( unsigned char **p, unsigned char *start,
A Dssl.h1112 mbedtls_time_t MBEDTLS_PRIVATE(start); /*!< starting time */
2184 unsigned char *start,
/mbedtls-development/tests/suites/
A Dtest_suite_asn1write.function10 unsigned char *start;
22 data->start = data->end - data->size;
40 TEST_ASSERT( data->p >= data->start );
70 ret = mbedtls_asn1_write_null( &data.p, data.start );
110 ret = mbedtls_asn1_write_int( &data.p, data.start, val );
186 &data.p, data.start,
191 &data.p, data.start,
196 &data.p, data.start,
201 &data.p, data.start,
206 &data.p, data.start, tag,
[all …]
A Dtest_suite_pem.function9 void mbedtls_pem_write_buffer( char * start, char * end, data_t * buf,
17 ret = mbedtls_pem_write_buffer( start, end, buf->x, buf->len, NULL, 0, &olen );
23 ret = mbedtls_pem_write_buffer( start, end, buf->x, buf->len, check_buf, olen, &olen2 );
A Dtest_suite_asn1parse.function25 unsigned char *const start = *p;
30 content_start = start + 1;
36 /* Since we have a valid element start (tag and length), retrieve and
38 tag = start[0];
41 *p = start;
52 *p = start;
64 *p = start;
68 *p = start + 1;
77 unsigned char *q = start;
87 *p = start;
[all …]
A Dtest_suite_ssl.function116 size_t start;
186 if( buf->start + buf->content_length < buf->capacity )
191 if( buf->start + buf->content_length + input_len
194 overflow = ( buf->start + buf->content_length + input_len )
198 memcpy( buf->buffer + buf->start + buf->content_length, input,
242 if( buf->start + output_len > buf->capacity )
244 overflow = ( buf->start + output_len ) % buf->capacity;
249 memcpy( output, buf->buffer + buf->start, output_len - overflow );
254 buf->start = ( buf->start + output_len ) % buf->capacity;
1443 session->start = mbedtls_time( NULL ) - 42;
[all …]
/mbedtls-development/tests/scripts/
A Dset_psa_test_dependencies.py225 dependencies_location = content_matches[-1].start()
232 text_before = stanza[:dependencies_match.start()]
259 for n, stanza in enumerate(old_stanzas, start=1)]
/mbedtls-development/scripts/
A Dassemble_changelog.py137 top_version_start = m.start(1)
160 if not title_matches or title_matches[0].start() != 0:
163 title_starts = [m.start(1) for m in title_matches]
/mbedtls-development/programs/ssl/
A Dssl_context_info.c590 uint64_t start; in print_deserialized_ssl_session() local
592 start = ( (uint64_t) ssl[0] << 56 ) | in print_deserialized_ssl_session()
602 print_time( (time_t*) &start ); in print_deserialized_ssl_session()
/mbedtls-development/ChangeLog.d/
A D00README.md64 lines start with 5 spaces. Lines wrap at 79 characters.
/mbedtls-development/
A DCONTRIBUTING.md17 1. [Check for open issues](https://github.com/ARMmbed/mbedtls/issues) or [start a discussion](https…
18 1. Fork the [Mbed TLS repository on GitHub](https://github.com/ARMmbed/mbedtls) to start making you…
/mbedtls-development/programs/test/
A Dbenchmark.c84 LARGE_INTEGER start; member
97 struct timeval start; member

Completed in 48 milliseconds

12