/openthread-2.7.6/third_party/mbedtls/repo/library/ |
D | asn1parse.c | 46 const unsigned char *end, in mbedtls_asn1_get_len() argument 49 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_len() 59 if( ( end - *p ) < 2 ) in mbedtls_asn1_get_len() 67 if( ( end - *p ) < 3 ) in mbedtls_asn1_get_len() 75 if( ( end - *p ) < 4 ) in mbedtls_asn1_get_len() 84 if( ( end - *p ) < 5 ) in mbedtls_asn1_get_len() 97 if( *len > (size_t) ( end - *p ) ) in mbedtls_asn1_get_len() 104 const unsigned char *end, in mbedtls_asn1_get_tag() argument 107 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_tag() 115 return( mbedtls_asn1_get_len( p, end, len ) ); in mbedtls_asn1_get_tag() [all …]
|
D | x509_crl.c | 69 const unsigned char *end, in x509_crl_get_version() argument 74 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_crl_get_version() 96 const unsigned char *end, in x509_get_crl_ext() argument 101 if( *p == end ) in x509_get_crl_ext() 108 if( ( ret = mbedtls_x509_get_ext( p, end, ext, 0 ) ) != 0 ) in x509_get_crl_ext() 111 end = ext->p + ext->len; in x509_get_crl_ext() 113 while( *p < end ) in x509_get_crl_ext() 126 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_crl_ext() 165 if( *p != end ) in x509_get_crl_ext() 176 const unsigned char *end, in x509_get_crl_entry_ext() argument [all …]
|
D | pkparse.c | 183 static int pk_get_ecparams( unsigned char **p, const unsigned char *end, in pk_get_ecparams() argument 188 if ( end - *p < 1 ) in pk_get_ecparams() 204 if( ( ret = mbedtls_asn1_get_tag( p, end, ¶ms->len, params->tag ) ) != 0 ) in pk_get_ecparams() 212 if( *p != end ) in pk_get_ecparams() 243 const unsigned char * const end = params->p + params->len; in pk_group_from_specified() local 249 if( ( ret = mbedtls_asn1_get_int( &p, end, &ver ) ) != 0 ) in pk_group_from_specified() 261 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in pk_group_from_specified() 305 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in pk_group_from_specified() 342 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, MBEDTLS_ASN1_OCTET_STRING ) ) != 0 ) in pk_group_from_specified() 368 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &grp->N ) ) != 0 ) in pk_group_from_specified() [all …]
|
D | x509.c | 78 int mbedtls_x509_get_serial( unsigned char **p, const unsigned char *end, in mbedtls_x509_get_serial() argument 83 if( ( end - *p ) < 1 ) in mbedtls_x509_get_serial() 94 if( ( ret = mbedtls_asn1_get_len( p, end, &serial->len ) ) != 0 ) in mbedtls_x509_get_serial() 109 int mbedtls_x509_get_alg_null( unsigned char **p, const unsigned char *end, in mbedtls_x509_get_alg_null() argument 114 if( ( ret = mbedtls_asn1_get_alg_null( p, end, alg ) ) != 0 ) in mbedtls_x509_get_alg_null() 123 int mbedtls_x509_get_alg( unsigned char **p, const unsigned char *end, in mbedtls_x509_get_alg() argument 128 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, params ) ) != 0 ) in mbedtls_x509_get_alg() 148 const unsigned char *end; in x509_get_hash_alg() local 158 end = p + alg->len; in x509_get_hash_alg() 160 if( p >= end ) in x509_get_hash_alg() [all …]
|
D | ecjpake.c | 152 const unsigned char *end, in ecjpake_write_len_point() argument 161 if( end < *p || end - *p < 5 ) in ecjpake_write_len_point() 165 &len, *p + 4, end - ( *p + 4 ) ); in ecjpake_write_len_point() 200 const unsigned char *end = buf + sizeof( buf ); in ecjpake_hash() local 205 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, G ) ); in ecjpake_hash() 206 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, V ) ); in ecjpake_hash() 207 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, X ) ); in ecjpake_hash() 209 if( end - p < 4 ) in ecjpake_hash() 217 if( end < p || (size_t)( end - p ) < id_len ) in ecjpake_hash() 245 const unsigned char *end ) in ecjpake_zkp_read() argument [all …]
|
D | x509_csr.c | 63 const unsigned char *end, in x509_csr_get_version() argument 68 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_csr_get_version() 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() 156 if( ( ret = x509_csr_get_version( &p, end, &csr->version ) ) != 0 ) in mbedtls_x509_csr_parse_der() [all …]
|
D | pkcs5.c | 60 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() 96 if( ( ret = mbedtls_asn1_get_alg_null( &p, end, &prf_alg_oid ) ) != 0 ) 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() [all …]
|
D | x509_crt.c | 385 const unsigned char *end, in x509_get_version() argument 391 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_version() 403 end = *p + len; in x509_get_version() 405 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_get_version() 408 if( *p != end ) in x509_get_version() 421 const unsigned char *end, in x509_get_dates() argument 428 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_dates() 432 end = *p + len; in x509_get_dates() 434 if( ( ret = mbedtls_x509_get_time( p, end, from ) ) != 0 ) in x509_get_dates() 437 if( ( ret = mbedtls_x509_get_time( p, end, to ) ) != 0 ) in x509_get_dates() [all …]
|
D | ssl_cli.c | 94 const unsigned char *end, in ssl_write_hostname_ext() argument 111 MBEDTLS_SSL_CHK_BUF_PTR( p, end, hostname_len + 9 ); in ssl_write_hostname_ext() 163 const unsigned char *end, in ssl_write_renegotiation_ext() argument 179 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 5 + ssl->verify_data_len ); in ssl_write_renegotiation_ext() 208 const unsigned char *end, in ssl_write_signature_algorithms_ext() argument 250 MBEDTLS_SSL_CHK_BUF_PTR( p, end, sig_alg_len + 6 ); in ssl_write_signature_algorithms_ext() 306 const unsigned char *end, in ssl_write_supported_elliptic_curves_ext() argument 348 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 + elliptic_curve_len ); in ssl_write_supported_elliptic_curves_ext() 379 const unsigned char *end, in ssl_write_supported_point_formats_ext() argument 389 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in ssl_write_supported_point_formats_ext() [all …]
|
D | dhm.c | 68 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() 133 const unsigned char *end ) in mbedtls_dhm_read_params() argument 138 DHM_VALIDATE_RET( end != NULL ); in mbedtls_dhm_read_params() 140 if( ( ret = dhm_read_bignum( &ctx->P, p, end ) ) != 0 || in mbedtls_dhm_read_params() 141 ( ret = dhm_read_bignum( &ctx->G, p, end ) ) != 0 || in mbedtls_dhm_read_params() 142 ( ret = dhm_read_bignum( &ctx->GY, p, end ) ) != 0 ) in mbedtls_dhm_read_params() 501 unsigned char *p, *end; in mbedtls_dhm_parse_dhm() local 535 end = p + dhminlen; in mbedtls_dhm_parse_dhm() [all …]
|
D | pem.c | 232 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()
|
D | ssl_cookie.c | 126 unsigned char **p, unsigned char *end, in ssl_cookie_hmac() argument 131 MBEDTLS_SSL_CHK_BUF_PTR( *p, end, COOKIE_HMAC_LEN ); in ssl_cookie_hmac() 151 unsigned char **p, unsigned char *end, in mbedtls_ssl_cookie_write() argument 161 MBEDTLS_SSL_CHK_BUF_PTR( *p, end, COOKIE_LEN ); in mbedtls_ssl_cookie_write() 181 p, end, cli_id, cli_id_len ); in mbedtls_ssl_cookie_write()
|
D | nist_kw.c | 643 goto end; in mbedtls_nist_kw_self_test() 655 goto end; in mbedtls_nist_kw_self_test() 665 goto end; in mbedtls_nist_kw_self_test() 678 goto end; in mbedtls_nist_kw_self_test() 698 goto end; in mbedtls_nist_kw_self_test() 710 goto end; in mbedtls_nist_kw_self_test() 720 goto end; in mbedtls_nist_kw_self_test() 733 goto end; in mbedtls_nist_kw_self_test() 739 end: in mbedtls_nist_kw_self_test()
|
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/ |
D | asn1.h | 209 const unsigned char *end, 234 const unsigned char *end, 253 const unsigned char *end, 274 const unsigned char *end, 295 const unsigned char *end, 315 int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end, 337 const unsigned char *end, 388 const unsigned char *end, 501 const unsigned char *end, 528 const unsigned char *end, [all …]
|
D | x509.h | 309 int mbedtls_x509_get_name( unsigned char **p, const unsigned char *end, 311 int mbedtls_x509_get_alg_null( unsigned char **p, const unsigned char *end, 313 int mbedtls_x509_get_alg( unsigned char **p, const unsigned char *end, 320 int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig ); 324 int mbedtls_x509_get_time( unsigned char **p, const unsigned char *end, 326 int mbedtls_x509_get_serial( unsigned char **p, const unsigned char *end, 328 int mbedtls_x509_get_ext( unsigned char **p, const unsigned char *end,
|
/openthread-2.7.6/src/core/meshcop/ |
D | meshcop_tlvs.cpp | 95 const Tlv *end = reinterpret_cast<const Tlv *>(aTlvsStart + aTlvsLength); in FindTlv() local 97 for (tlv = reinterpret_cast<const Tlv *>(aTlvsStart); tlv < end; tlv = tlv->GetNext()) in FindTlv() 99 VerifyOrExit((tlv + 1) <= end, tlv = nullptr); in FindTlv() 101 … (reinterpret_cast<const ExtendedTlv *>(tlv) + 1 <= reinterpret_cast<const ExtendedTlv *>(end)), in FindTlv() 103 VerifyOrExit(tlv->GetNext() <= end, tlv = nullptr); in FindTlv() 219 const ChannelMaskEntryBase *end = reinterpret_cast<const ChannelMaskEntryBase *>(GetNext()); in IsValid() local 224 while (cur < end) in IsValid() 228 VerifyOrExit((cur + 1) <= end && cur->GetNext() <= end); in IsValid() 319 const ChannelMaskEntryBase *end = reinterpret_cast<const ChannelMaskEntryBase *>(GetNext()); in GetChannelMask() local 324 while (cur < end) in GetChannelMask() [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/programs/util/ |
D | strerror.c | 57 char *end = argv[1]; in main() local 65 val = strtol( argv[1], &end, 10 ); in main() 66 if( *end != '\0' ) in main() 68 val = strtol( argv[1], &end, 16 ); in main() 69 if( *end != '\0' ) in main()
|
D | pem2der.c | 80 const unsigned char *s1, *s2, *end = input + ilen; in convert_pem_to_der() local 92 while( s1 < end && *s1 != '-' ) in convert_pem_to_der() 94 while( s1 < end && *s1 == '-' ) in convert_pem_to_der() 99 if( s2 <= s1 || s2 > end ) in convert_pem_to_der()
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_base64.data | 73 Base64 decode "Zm9vYmFy" (no newline nor '\0' at end) 76 Base64 decode "Zm9vYmFy\n" (LF at end) 79 Base64 decode "Zm9vYmFy\r\n" (CRLF at end) 82 Base64 decode "Zm9vYmFy\r" (CR at end) 85 Base64 decode "Zm9vYmFy " (SP at end) 88 Base64 decode "Zm9vYmFy \n" (SP+LF at end) 91 Base64 decode "Zm9vYmFy \r\n" (SP+CRLF at end) 94 Base64 decode "Zm9vYmFy \r" (SP+CR at end) 97 Base64 decode "Zm9vYmFy " (2SP at end) 100 Base64 decode "Zm9vYmFy \n" (2SP+LF at end) [all …]
|
D | test_suite_pem.function | 9 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 );
|
D | test_suite_memory_buffer_alloc.data | 4 Memory buffer alloc - free in middle, alloc at end 13 Memory buffer alloc - free at end, merge, realloc
|
/openthread-2.7.6/src/core/thread/ |
D | lowpan.cpp | 668 const uint8_t * end = aBuf + aBufLength; in DecompressBaseHeader() local 675 VerifyOrExit(cur + 2 <= end); in DecompressBaseHeader() 688 VerifyOrExit(cur < end); in DecompressBaseHeader() 714 VerifyOrExit(cur < end); in DecompressBaseHeader() 728 VerifyOrExit(cur + 3 <= end); in DecompressBaseHeader() 739 VerifyOrExit(cur < end); in DecompressBaseHeader() 765 VerifyOrExit(cur < end); in DecompressBaseHeader() 777 VerifyOrExit(cur + sizeof(Ip6::Address) <= end); in DecompressBaseHeader() 785 VerifyOrExit(cur + Ip6::InterfaceIdentifier::kSize <= end); in DecompressBaseHeader() 791 VerifyOrExit(cur + 2 <= end); in DecompressBaseHeader() [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/programs/ssl/ |
D | ssl_context_info.c | 107 if( end - ssl < (int)( LEN ) ) \ 255 const uint8_t *end = b + len; in print_b64() local 257 while( b < end ) in print_b64() 282 const uint8_t *end = b + len; in print_hex() local 289 while( b < end ) in print_hex() 585 const uint8_t *end = ssl + len; in print_deserialized_ssl_session() local 773 if( ssl < end ) in print_deserialized_ssl_session() 796 if( 0 != ( end - ssl ) ) in print_deserialized_ssl_session() 798 printf_err( "%i bytes left to analyze from session\n", (int32_t)( end - ssl ) ); in print_deserialized_ssl_session() 837 const uint8_t *end = ssl + len; in print_deserialized_ssl_context() local [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/programs/psa/ |
D | psa_constant_names.c | 215 char *end; in process_signed() local 216 long value = strtol(*argp, &end, 0); in process_signed() 217 if (*end) { in process_signed() 254 char *end; in process_unsigned() local 255 unsigned long value = strtoul(*argp, &end, 0); in process_unsigned() 256 if (*end) { in process_unsigned()
|
/openthread-2.7.6/third_party/mbedtls/repo/programs/test/ |
D | zeroize.c | 65 char *end = p + BUFFER_LEN; in main() local 82 while( ( c = fgetc( fp ) ) != EOF && p < end - 1 ) in main()
|