/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | asn1parse.c | 55 const unsigned char *end, in mbedtls_asn1_get_len() argument 58 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_len() 68 if( ( end - *p ) < 2 ) in mbedtls_asn1_get_len() 76 if( ( end - *p ) < 3 ) in mbedtls_asn1_get_len() 84 if( ( end - *p ) < 4 ) in mbedtls_asn1_get_len() 93 if( ( end - *p ) < 5 ) in mbedtls_asn1_get_len() 106 if( *len > (size_t) ( end - *p ) ) in mbedtls_asn1_get_len() 113 const unsigned char *end, in mbedtls_asn1_get_tag() argument 116 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_tag() 124 return( mbedtls_asn1_get_len( p, end, len ) ); in mbedtls_asn1_get_tag() [all …]
|
D | x509_crl.c | 78 const unsigned char *end, in x509_crl_get_version() argument 83 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_crl_get_version() 101 const unsigned char *end, in x509_get_crl_ext() argument 108 if( ( ret = mbedtls_x509_get_ext( p, end, ext, 0) ) != 0 ) in x509_get_crl_ext() 116 while( *p < end ) in x509_get_crl_ext() 118 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_crl_ext() 125 if( *p != end ) in x509_get_crl_ext() 136 const unsigned char *end, in x509_get_crl_entry_ext() argument 143 if( end <= *p ) in x509_get_crl_entry_ext() 153 if( ( ret = mbedtls_asn1_get_tag( p, end, &ext->len, in x509_get_crl_entry_ext() [all …]
|
D | pkparse.c | 173 static int pk_get_ecparams( unsigned char **p, const unsigned char *end, in pk_get_ecparams() argument 190 if( ( ret = mbedtls_asn1_get_tag( p, end, ¶ms->len, params->tag ) ) != 0 ) in pk_get_ecparams() 198 if( *p != end ) in pk_get_ecparams() 229 const unsigned char * const end = params->p + params->len; in pk_group_from_specified() local 235 if( ( ret = mbedtls_asn1_get_int( &p, end, &ver ) ) != 0 ) in pk_group_from_specified() 247 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in pk_group_from_specified() 291 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in pk_group_from_specified() 328 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, MBEDTLS_ASN1_OCTET_STRING ) ) != 0 ) in pk_group_from_specified() 354 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &grp->N ) ) != 0 ) in pk_group_from_specified() 481 static int pk_get_ecpubkey( unsigned char **p, const unsigned char *end, in pk_get_ecpubkey() argument [all …]
|
D | x509.c | 88 int mbedtls_x509_get_serial( unsigned char **p, const unsigned char *end, in mbedtls_x509_get_serial() argument 93 if( ( end - *p ) < 1 ) in mbedtls_x509_get_serial() 104 if( ( ret = mbedtls_asn1_get_len( p, end, &serial->len ) ) != 0 ) in mbedtls_x509_get_serial() 119 int mbedtls_x509_get_alg_null( unsigned char **p, const unsigned char *end, in mbedtls_x509_get_alg_null() argument 124 if( ( ret = mbedtls_asn1_get_alg_null( p, end, alg ) ) != 0 ) in mbedtls_x509_get_alg_null() 133 int mbedtls_x509_get_alg( unsigned char **p, const unsigned char *end, in mbedtls_x509_get_alg() argument 138 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, params ) ) != 0 ) in mbedtls_x509_get_alg() 158 const unsigned char *end; in x509_get_hash_alg() local 168 end = p + alg->len; in x509_get_hash_alg() 170 if( p >= end ) in x509_get_hash_alg() [all …]
|
D | ecjpake.c | 142 const unsigned char *end, in ecjpake_write_len_point() argument 151 if( end < *p || end - *p < 5 ) in ecjpake_write_len_point() 155 &len, *p + 4, end - ( *p + 4 ) ); in ecjpake_write_len_point() 190 const unsigned char *end = buf + sizeof( buf ); in ecjpake_hash() local 195 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, G ) ); in ecjpake_hash() 196 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, V ) ); in ecjpake_hash() 197 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, X ) ); in ecjpake_hash() 199 if( end - p < 4 ) in ecjpake_hash() 207 if( end < p || (size_t)( end - p ) < id_len ) in ecjpake_hash() 235 const unsigned char *end ) in ecjpake_zkp_read() argument [all …]
|
D | x509_csr.c | 72 const unsigned char *end, in x509_csr_get_version() argument 77 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_csr_get_version() 99 unsigned char *p, *end; in mbedtls_x509_csr_parse_der() local 124 end = p + len; in mbedtls_x509_csr_parse_der() 133 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der() 140 if( len != (size_t) ( end - p ) ) in mbedtls_x509_csr_parse_der() 152 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der() 159 end = p + len; in mbedtls_x509_csr_parse_der() 160 csr->cri.len = end - csr->cri.p; in mbedtls_x509_csr_parse_der() 165 if( ( ret = x509_csr_get_version( &p, end, &csr->version ) ) != 0 ) in mbedtls_x509_csr_parse_der() [all …]
|
D | x509_crt.c | 210 const unsigned char *end, in x509_get_version() argument 216 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_version() 228 end = *p + len; in x509_get_version() 230 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_get_version() 233 if( *p != end ) in x509_get_version() 246 const unsigned char *end, in x509_get_dates() argument 253 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_dates() 257 end = *p + len; in x509_get_dates() 259 if( ( ret = mbedtls_x509_get_time( p, end, from ) ) != 0 ) in x509_get_dates() 262 if( ( ret = mbedtls_x509_get_time( p, end, to ) ) != 0 ) in x509_get_dates() [all …]
|
D | pkcs5.c | 61 const unsigned char *end = params->p + params->len; in pkcs5_parse_pbkdf2_params() local 75 if( ( ret = mbedtls_asn1_get_tag( &p, end, &salt->len, MBEDTLS_ASN1_OCTET_STRING ) ) != 0 ) 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() 104 if( p != end ) in pkcs5_parse_pbkdf2_params() 117 unsigned char *p, *end; in mbedtls_pkcs5_pbes2() local 130 end = p + pbe_params->len; in mbedtls_pkcs5_pbes2() [all …]
|
D | dhm.c | 70 const unsigned char *end ) in dhm_read_bignum() argument 74 if( end - *p < 2 ) in dhm_read_bignum() 80 if( (int)( end - *p ) < n ) in dhm_read_bignum() 131 const unsigned char *end ) in mbedtls_dhm_read_params() argument 135 if( ( ret = dhm_read_bignum( &ctx->P, p, end ) ) != 0 || in mbedtls_dhm_read_params() 136 ( ret = dhm_read_bignum( &ctx->G, p, end ) ) != 0 || in mbedtls_dhm_read_params() 137 ( ret = dhm_read_bignum( &ctx->GY, p, end ) ) != 0 ) in mbedtls_dhm_read_params() 420 unsigned char *p, *end; in mbedtls_dhm_parse_dhm() local 449 end = p + dhminlen; in mbedtls_dhm_parse_dhm() 458 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_dhm_parse_dhm() [all …]
|
D | ssl_cli.c | 63 const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; in ssl_write_hostname_ext() local 76 if( end < p || (size_t)( end - p ) < hostname_len + 9 ) in ssl_write_hostname_ext() 125 const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; in ssl_write_renegotiation_ext() local 134 if( end < p || (size_t)( end - p ) < 5 + ssl->verify_data_len ) in ssl_write_renegotiation_ext() 166 const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; in ssl_write_signature_algorithms_ext() local 190 if( end < p || (size_t)( end - p ) < sig_alg_len + 6 ) in ssl_write_signature_algorithms_ext() 251 const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; local 282 if( end < p || (size_t)( end - p ) < 6 + elliptic_curve_len ) 322 const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; local 328 if( end < p || (size_t)( end - p ) < 6 ) [all …]
|
D | pem.c | 213 const unsigned char *s1, *s2, *end; in mbedtls_pem_read_buffer() local 243 end = s2; in mbedtls_pem_read_buffer() 244 end += strlen( footer ); in mbedtls_pem_read_buffer() 245 if( *end == ' ' ) end++; in mbedtls_pem_read_buffer() 246 if( *end == '\r' ) end++; in mbedtls_pem_read_buffer() 247 if( *end == '\n' ) end++; in mbedtls_pem_read_buffer() 248 *use_len = end - data; in mbedtls_pem_read_buffer()
|
D | ssl_cookie.c | 135 unsigned char **p, unsigned char *end, in ssl_cookie_hmac() argument 140 if( (size_t)( end - *p ) < COOKIE_HMAC_LEN ) in ssl_cookie_hmac() 161 unsigned char **p, unsigned char *end, in mbedtls_ssl_cookie_write() argument 171 if( (size_t)( end - *p ) < COOKIE_LEN ) in mbedtls_ssl_cookie_write() 192 p, end, cli_id, cli_id_len ); in mbedtls_ssl_cookie_write()
|
D | ssl_ticket.c | 217 const unsigned char * const end = buf + len; in ssl_load_session() local 222 if( p + sizeof( mbedtls_ssl_session ) > end ) in ssl_load_session() 229 if( p + 3 > end ) in ssl_load_session() 243 if( p + cert_len > end ) in ssl_load_session() 266 if( p != end ) in ssl_load_session() 288 const unsigned char *end, in mbedtls_ssl_ticket_write() argument 309 if( end - start < 4 + 12 + 2 + 16 ) in mbedtls_ssl_ticket_write() 331 state, end - state, &clear_len ) ) != 0 || in mbedtls_ssl_ticket_write()
|
D | x509_create.c | 93 const char *end = s + strlen( s ); in mbedtls_x509_string_to_names() local 102 while( c <= end ) in mbedtls_x509_string_to_names() 117 if( !in_tag && *c == '\\' && c != end ) in mbedtls_x509_string_to_names() 122 if( c == end || *c != ',' ) in mbedtls_x509_string_to_names() 128 else if( !in_tag && ( *c == ',' || c == end ) ) in mbedtls_x509_string_to_names() 137 while( c < end && *(c + 1) == ' ' ) in mbedtls_x509_string_to_names()
|
D | ssl_srv.c | 195 const unsigned char *end = buf + len; in ssl_parse_signature_algorithms_ext() local 214 for( p = buf + 2; p < end; p += 2 ) { in ssl_parse_signature_algorithms_ext() 517 const unsigned char *theirs, *start, *end; in ssl_parse_alpn_ext() local 544 end = buf + len; in ssl_parse_alpn_ext() 548 for( theirs = start; theirs != end; theirs += cur_len ) in ssl_parse_alpn_ext() 551 if( theirs > end ) in ssl_parse_alpn_ext() 2080 const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; local 2092 if( end - p < 4 ) 2102 p + 2, end - p - 2, &kkpp_len, 2481 const unsigned char * const end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; local [all …]
|
D | ecdsa.c | 363 const unsigned char *end = sig + slen; in mbedtls_ecdsa_read_signature() local 370 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_ecdsa_read_signature() 377 if( p + len != end ) in mbedtls_ecdsa_read_signature() 384 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &r ) ) != 0 || in mbedtls_ecdsa_read_signature() 385 ( ret = mbedtls_asn1_get_mpi( &p, end, &s ) ) != 0 ) in mbedtls_ecdsa_read_signature() 395 if( p != end ) in mbedtls_ecdsa_read_signature()
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | asn1.h | 172 const unsigned char *end, 188 const unsigned char *end, 202 const unsigned char *end, 216 const unsigned char *end, 229 int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end, 243 int mbedtls_asn1_get_bitstring_null( unsigned char **p, const unsigned char *end, 258 const unsigned char *end, 274 const unsigned char *end, 291 const unsigned char *end, 307 const unsigned char *end,
|
D | x509.h | 281 int mbedtls_x509_get_name( unsigned char **p, const unsigned char *end, 283 int mbedtls_x509_get_alg_null( unsigned char **p, const unsigned char *end, 285 int mbedtls_x509_get_alg( unsigned char **p, const unsigned char *end, 292 int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig ); 296 int mbedtls_x509_get_time( unsigned char **p, const unsigned char *end, 298 int mbedtls_x509_get_serial( unsigned char **p, const unsigned char *end, 300 int mbedtls_x509_get_ext( unsigned char **p, const unsigned char *end,
|
/net-tools-3.6.0/mbedtls-2.4.0/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 | 76 const unsigned char *s1, *s2, *end = input + ilen; in convert_pem_to_der() local 88 while( s1 < end && *s1 != '-' ) in convert_pem_to_der() 90 while( s1 < end && *s1 == '-' ) in convert_pem_to_der() 95 if( s2 <= s1 || s2 > end ) in convert_pem_to_der()
|
/net-tools-3.6.0/tinydtls-0.8.2/sha2/ |
D | sha2speed.c | 69 struct timeval start, end; in main() local 112 gettimeofday(&end, (struct timezone*)0); in main() 113 t = ((end.tv_sec - start.tv_sec) * 1000000.0 + (end.tv_usec - start.tv_usec)) / 1000000.0; in main() 128 gettimeofday(&end, (struct timezone*)0); in main() 129 t = ((end.tv_sec - start.tv_sec) * 1000000.0 + (end.tv_usec - start.tv_usec)) / 1000000.0; in main() 144 gettimeofday(&end, (struct timezone*)0); in main() 145 t = ((end.tv_sec - start.tv_sec) * 1000000.0 + (end.tv_usec - start.tv_usec)) / 1000000.0; in main()
|
/net-tools-3.6.0/mbedtls-2.4.0/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 | 12 void mbedtls_pem_write_buffer( char *start, char *end, char *buf_str, char *result_str ) 23 ret = mbedtls_pem_write_buffer( start, end, buf, buf_len, NULL, 0, &olen ); 30 ret = mbedtls_pem_write_buffer( start, end, buf, 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
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/pkey/ |
D | dh_client.c | 78 unsigned char *p, *end; in main() local 184 p = buf, end = buf + buflen; in main() 186 if( ( ret = mbedtls_dhm_read_params( &dhm, &p, end ) ) != 0 ) in main() 208 if( ( n = (size_t) ( end - p ) ) != rsa.len ) in main()
|