Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 80) sorted by relevance

1234

/mbedtls-development/library/
A Dasn1parse.c49 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_len()
59 if( ( end - *p ) < 2 ) in mbedtls_asn1_get_len()
107 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_tag()
238 if( *p != end ) in mbedtls_asn1_get_bitstring()
250 const unsigned char *end, in mbedtls_asn1_traverse_sequence_of() argument
267 if( *p + len != end ) in mbedtls_asn1_traverse_sequence_of()
270 while( *p < end ) in mbedtls_asn1_traverse_sequence_of()
390 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_alg()
394 end = *p + len; in mbedtls_asn1_get_alg()
402 if( *p == end ) in mbedtls_asn1_get_alg()
[all …]
A Dx509_crl.c101 if( *p == end ) in x509_get_crl_ext()
113 while( *p < end ) in x509_get_crl_ext()
165 if( *p != end ) in x509_get_crl_ext()
183 if( end <= *p ) in x509_get_crl_entry_ext()
210 while( *p < end ) in x509_get_crl_entry_ext()
219 if( *p != end ) in x509_get_crl_entry_ext()
237 if( *p == end ) in x509_get_entries()
251 while( *p < end ) in x509_get_entries()
383 end = p + len; in mbedtls_x509_crl_parse_der()
486 if( p != end ) in mbedtls_x509_crl_parse_der()
[all …]
A Dmps_reader.c117 end = rd->end; in mps_reader_serving_from_accumulator()
228 rd->end = 0; in mbedtls_mps_reader_feed()
247 end = rd->end; in mbedtls_mps_reader_get()
342 acc += end; in mbedtls_mps_reader_get()
348 end += desired; in mbedtls_mps_reader_get()
349 rd->end = end; in mbedtls_mps_reader_get()
398 end += desired; in mbedtls_mps_reader_get()
399 rd->end = end; in mbedtls_mps_reader_get()
411 end = rd->end; in mbedtls_mps_reader_commit()
412 rd->commit = end; in mbedtls_mps_reader_commit()
[all …]
A Dpkparse.c189 if ( end - *p < 1 ) in pk_get_ecparams()
213 if( *p != end ) in pk_get_ecparams()
564 if( *p != end ) in pk_get_rsapubkey()
631 end = *p + len; in mbedtls_pk_parse_subpubkey()
741 end = p + len; in pk_parse_key_pkcs1_der()
833 if( p != end ) in pk_parse_key_pkcs1_der()
890 end = p + len; in pk_parse_key_sec1_der()
910 if( p != end ) in pk_parse_key_sec1_der()
932 if( p != end ) in pk_parse_key_sec1_der()
1040 end = p + len; in pk_parse_key_pkcs8_unencrypted_der()
[all …]
A Dssl_tls13_client.c64 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 7 ); in ssl_tls13_write_supported_versions_ext()
183 ((void) end); in ssl_tls13_write_named_group_list_ecdhe()
196 ((void) end); in ssl_tls13_write_named_group_list_dhe()
225 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in ssl_tls13_write_supported_groups_ext()
282 unsigned char *end, in ssl_tls13_generate_and_write_ecdh_key_exchange() argument
386 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in ssl_tls13_write_key_share_ext()
602 unsigned char *end, in ssl_tls13_write_client_hello_cipher_suites() argument
623 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_tls13_write_client_hello_cipher_suites()
702 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_tls13_write_client_hello_body()
726 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 1 ); in ssl_tls13_write_client_hello_body()
[all …]
A Dx509.c158 end = p + alg->len; in x509_get_hash_alg()
160 if( p >= end ) in x509_get_hash_alg()
178 if( p == end ) in x509_get_hash_alg()
184 if( p != end ) in x509_get_hash_alg()
226 if( p == end ) in mbedtls_x509_get_rsassa_pss_params()
251 if( p == end ) in mbedtls_x509_get_rsassa_pss_params()
282 if( p == end ) in mbedtls_x509_get_rsassa_pss_params()
303 if( p == end ) in mbedtls_x509_get_rsassa_pss_params()
329 if( p != end ) in mbedtls_x509_get_rsassa_pss_params()
359 end = *p + len; in x509_get_attr_type_value()
[all …]
A Decjpake.c175 if( end < *p || end - *p < 5 ) in ecjpake_write_len_point()
226 if( end < p || (size_t)( end - p ) < id_len ) in ecjpake_hash()
272 if( end < *p ) in ecjpake_zkp_read()
277 if( end < *p || (size_t)( end - *p ) < 1 ) in ecjpake_zkp_read()
285 if( end < *p || (size_t)( end - *p ) < r_len || r_len == 0 ) in ecjpake_zkp_read()
337 if( end < *p ) in ecjpake_zkp_write()
358 if( end < *p || (size_t)( end - *p ) < 1 + len || len > 255 ) in ecjpake_zkp_write()
391 if( end < *p ) in ecjpake_kkp_read()
432 if( end < *p ) in ecjpake_kkp_write()
476 if( p != end ) in ecjpake_kkpp_read()
[all …]
A Dx509_csr.c63 const unsigned char *end, in x509_csr_get_version() argument
90 unsigned char *p, *end; in mbedtls_x509_csr_parse_der() local
115 end = p + len; in mbedtls_x509_csr_parse_der()
124 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der()
131 if( len != (size_t) ( end - p ) ) in mbedtls_x509_csr_parse_der()
143 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der()
150 end = p + len; in mbedtls_x509_csr_parse_der()
151 csr->cri.len = end - csr->cri.p; in mbedtls_x509_csr_parse_der()
175 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der()
218 end = csr->raw.p + csr->raw.len; in mbedtls_x509_csr_parse_der()
[all …]
A Dx509_crt.c424 end = *p + len; in x509_get_version()
429 if( *p != end ) in x509_get_version()
453 end = *p + len; in x509_get_dates()
461 if( *p != end ) in x509_get_dates()
477 if( *p == end ) in x509_get_uid()
517 if( *p == end ) in x509_get_basic_constraints()
532 if( *p == end ) in x509_get_basic_constraints()
538 if( *p != end ) in x509_get_basic_constraints()
1110 end = p + len; in x509_crt_parse_der_core()
1158 end = p + len; in x509_crt_parse_der_core()
[all …]
A Dpkcs5.c60 const unsigned char *end = params->p + params->len; in pkcs5_parse_pbkdf2_params() local
74 if( ( ret = mbedtls_asn1_get_tag( &p, end, &salt->len, in pkcs5_parse_pbkdf2_params()
81 if( ( ret = mbedtls_asn1_get_int( &p, end, iterations ) ) != 0 ) in pkcs5_parse_pbkdf2_params()
84 if( p == end ) in pkcs5_parse_pbkdf2_params()
87 if( ( ret = mbedtls_asn1_get_int( &p, end, keylen ) ) != 0 ) in pkcs5_parse_pbkdf2_params()
93 if( p == end ) in pkcs5_parse_pbkdf2_params()
102 if( p != end ) in pkcs5_parse_pbkdf2_params()
115 unsigned char *p, *end; in mbedtls_pkcs5_pbes2() local
128 end = p + pbe_params->len; in mbedtls_pkcs5_pbes2()
140 if( ( ret = mbedtls_asn1_get_alg( &p, end, &kdf_alg_oid, in mbedtls_pkcs5_pbes2()
[all …]
A Dssl_cli.c316 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in ssl_write_supported_elliptic_curves_ext()
378 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in ssl_write_supported_point_formats_ext()
922 const unsigned char *end; in ssl_write_client_hello() local
2533 if( end - *p < 4 ) in ssl_parse_server_ecdh_params_psa()
2634 if( end - (*p) < 2 ) in ssl_parse_server_psk_hint()
2643 if( end - (*p) < len ) in ssl_parse_server_psk_hint()
2769 if( (*p) + 2 > end ) in ssl_parse_signature_algorithm()
2887 ((void) end); in ssl_parse_server_key_exchange()
2910 ((void) end); in ssl_parse_server_key_exchange()
3134 if( p > end - 2 ) in ssl_parse_server_key_exchange()
[all …]
A Ddhm.c68 const unsigned char *end ) in dhm_read_bignum() argument
72 if( end - *p < 2 ) in dhm_read_bignum()
78 if( (int)( end - *p ) < n ) in dhm_read_bignum()
173 const unsigned char *end ) in mbedtls_dhm_read_params() argument
178 DHM_VALIDATE_RET( end != NULL ); in mbedtls_dhm_read_params()
516 unsigned char *p, *end; in mbedtls_dhm_parse_dhm() local
550 end = p + dhminlen; in mbedtls_dhm_parse_dhm()
559 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_dhm_parse_dhm()
566 end = p + len; in mbedtls_dhm_parse_dhm()
575 if( p != end ) in mbedtls_dhm_parse_dhm()
[all …]
A Dssl_tls13_generic.c157 unsigned char *end, in mbedtls_ssl_tls13_write_sig_alg_ext() argument
183 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in mbedtls_ssl_tls13_write_sig_alg_ext()
193 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in mbedtls_ssl_tls13_write_sig_alg_ext()
328 MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, 2 ); in ssl_tls13_parse_certificate_verify()
387 MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, 2 ); in ssl_tls13_parse_certificate_verify()
390 MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, signature_len ); in ssl_tls13_parse_certificate_verify()
557 const unsigned char *end ) in ssl_tls13_parse_certificate() argument
565 MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, 4 ); in ssl_tls13_parse_certificate()
666 if( p != end ) in ssl_tls13_parse_certificate()
685 ((void) end); in ssl_tls13_parse_certificate()
[all …]
A Dpem.c232 const unsigned char *s1, *s2, *end; in mbedtls_pem_read_buffer() local
262 end = s2; in mbedtls_pem_read_buffer()
263 end += strlen( footer ); in mbedtls_pem_read_buffer()
264 if( *end == ' ' ) end++; in mbedtls_pem_read_buffer()
265 if( *end == '\r' ) end++; in mbedtls_pem_read_buffer()
266 if( *end == '\n' ) end++; in mbedtls_pem_read_buffer()
267 *use_len = end - data; in mbedtls_pem_read_buffer()
A Dssl_cookie.c125 unsigned char **p, unsigned char *end, in ssl_cookie_hmac() argument
130 MBEDTLS_SSL_CHK_BUF_PTR( *p, end, COOKIE_HMAC_LEN ); in ssl_cookie_hmac()
150 unsigned char **p, unsigned char *end, in mbedtls_ssl_cookie_write() argument
160 MBEDTLS_SSL_CHK_BUF_PTR( *p, end, COOKIE_LEN ); in mbedtls_ssl_cookie_write()
177 p, end, cli_id, cli_id_len ); in mbedtls_ssl_cookie_write()
A Dnist_kw.c625 goto end; in mbedtls_nist_kw_self_test()
637 goto end; in mbedtls_nist_kw_self_test()
647 goto end; in mbedtls_nist_kw_self_test()
660 goto end; in mbedtls_nist_kw_self_test()
680 goto end; in mbedtls_nist_kw_self_test()
692 goto end; in mbedtls_nist_kw_self_test()
702 goto end; in mbedtls_nist_kw_self_test()
715 goto end; in mbedtls_nist_kw_self_test()
721 end: in mbedtls_nist_kw_self_test()
A Dssl_srv.c708 end = buf + len; in ssl_parse_alpn_ext()
1956 if( end < p || (size_t)( end - p ) < (unsigned)( ssl->own_cid_len + 5 ) ) in ssl_write_cid_ext()
2195 if( end - p < 4 ) in ssl_write_ecjpake_kkpp_ext()
2811 if( end < p || (size_t)( end - p ) < 2 + (size_t) dn_size ) in ssl_write_certificate_request()
3388 if( *p + 2 > end ) in ssl_parse_client_dh_public()
3397 if( *p + n > end ) in ssl_parse_client_dh_public()
3466 if ( p + 2 > end ) { in ssl_decrypt_encrypted_pms()
3639 if( end - *p < 2 ) in ssl_parse_client_psk_identity()
3738 if( p != end ) in ssl_parse_client_key_exchange()
3804 if( p != end ) in ssl_parse_client_key_exchange()
[all …]
/mbedtls-development/include/mbedtls/
A Dasn1.h235 const unsigned char *end,
260 const unsigned char *end,
279 const unsigned char *end,
300 const unsigned char *end,
321 const unsigned char *end,
363 const unsigned char *end,
414 const unsigned char *end,
527 const unsigned char *end,
554 const unsigned char *end,
575 const unsigned char *end,
[all …]
A Dx509.h315 int mbedtls_x509_get_name( unsigned char **p, const unsigned char *end,
317 int mbedtls_x509_get_alg_null( unsigned char **p, const unsigned char *end,
319 int mbedtls_x509_get_alg( unsigned char **p, const unsigned char *end,
326 int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig );
330 int mbedtls_x509_get_time( unsigned char **p, const unsigned char *end,
332 int mbedtls_x509_get_serial( unsigned char **p, const unsigned char *end,
334 int mbedtls_x509_get_ext( unsigned char **p, const unsigned char *end,
/mbedtls-development/programs/util/
A Dstrerror.c53 char *end = argv[1]; in main() local
61 val = strtol( argv[1], &end, 10 ); in main()
62 if( *end != '\0' ) in main()
64 val = strtol( argv[1], &end, 16 ); in main()
65 if( *end != '\0' ) in main()
/mbedtls-development/tests/suites/
A Dtest_suite_base64.data106 Base64 decode "Zm9vYmFy\n" (LF at end)
109 Base64 decode "Zm9vYmFy\r\n" (CRLF at end)
112 Base64 decode "Zm9vYmFy\r" (CR at end)
115 Base64 decode "Zm9vYmFy " (SP at end)
118 Base64 decode "Zm9vYmFy \n" (SP+LF at end)
121 Base64 decode "Zm9vYmFy \r\n" (SP+CRLF at end)
124 Base64 decode "Zm9vYmFy \r" (SP+CR at end)
127 Base64 decode "Zm9vYmFy " (2SP at end)
130 Base64 decode "Zm9vYmFy \n" (2SP+LF at end)
133 Base64 decode "Zm9vYmFy \r\n" (2SP+CRLF at end)
[all …]
/mbedtls-development/tests/src/
A Dpsa_exercise_key.c649 const uint8_t *end = exported + exported_length; in mbedtls_test_psa_exported_key_sanity_check() local
663 TEST_EQUAL( mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_test_psa_exported_key_sanity_check()
666 TEST_EQUAL( len, end - p ); in mbedtls_test_psa_exported_key_sanity_check()
667 if( ! mbedtls_test_asn1_skip_integer( &p, end, 0, 0, 0 ) ) in mbedtls_test_psa_exported_key_sanity_check()
671 if( ! mbedtls_test_asn1_skip_integer( &p, end, 2, bits, 1 ) ) in mbedtls_test_psa_exported_key_sanity_check()
687 TEST_EQUAL( p - end, 0 ); in mbedtls_test_psa_exported_key_sanity_check()
709 const uint8_t *end = exported + exported_length; in mbedtls_test_psa_exported_key_sanity_check() local
715 TEST_EQUAL( mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_test_psa_exported_key_sanity_check()
719 TEST_EQUAL( len, end - p ); in mbedtls_test_psa_exported_key_sanity_check()
722 if( ! mbedtls_test_asn1_skip_integer( &p, end, 2, bits, 1 ) ) in mbedtls_test_psa_exported_key_sanity_check()
[all …]
A Dasn1_helpers.c30 int mbedtls_test_asn1_skip_integer( unsigned char **p, const unsigned char *end, in mbedtls_test_asn1_skip_integer() argument
37 TEST_EQUAL( mbedtls_asn1_get_tag( p, end, &len, in mbedtls_test_asn1_skip_integer()
43 TEST_ASSERT( len <= (size_t)( end - *p) ); in mbedtls_test_asn1_skip_integer()
/mbedtls-development/programs/ssl/
A Dssl_context_info.c104 if( end - ssl < (int)( LEN ) ) \
252 const uint8_t *end = b + len; in print_b64() local
254 while( b < end ) in print_b64()
279 const uint8_t *end = b + len; in print_hex() local
286 while( b < end ) in print_hex()
584 const uint8_t *end = ssl + len; in print_deserialized_ssl_session() local
768 if( ssl < end ) in print_deserialized_ssl_session()
791 if( 0 != ( end - ssl ) ) in print_deserialized_ssl_session()
793 printf_err( "%i bytes left to analyze from session\n", (int32_t)( end - ssl ) ); in print_deserialized_ssl_session()
832 const uint8_t *end = ssl + len; in print_deserialized_ssl_context() local
[all …]
/mbedtls-development/programs/psa/
A Dpsa_constant_names.c209 char *end; in process_signed() local
210 long value = strtol(*argp, &end, 0); in process_signed()
211 if (*end) { in process_signed()
248 char *end; in process_unsigned() local
249 unsigned long value = strtoul(*argp, &end, 0); in process_unsigned()
250 if (*end) { in process_unsigned()

Completed in 70 milliseconds

1234