Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_cipher.null.data1 NULL Encrypt and decrypt 0 bytes
3 enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:0:-1
5 NULL Encrypt and decrypt 1 bytes
7 enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:1:-1
9 NULL Encrypt and decrypt 2 bytes
11 enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:2:-1
13 NULL Encrypt and decrypt 7 bytes
15 enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:7:-1
17 NULL Encrypt and decrypt 8 bytes
19 enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:8:-1
[all …]
Dtest_suite_rsa.function31 TEST_INVALID_PARAM( mbedtls_rsa_init( NULL, valid_padding, 0 ) );
33 TEST_VALID_PARAM( mbedtls_rsa_free( NULL ) );
35 /* No more variants because only the first argument must be non-NULL. */
37 mbedtls_rsa_import( NULL, NULL, NULL,
38 NULL, NULL, NULL ) );
40 mbedtls_rsa_import_raw( NULL,
41 NULL, 0,
42 NULL, 0,
43 NULL, 0,
44 NULL, 0,
[all …]
Dtest_suite_shax.function10 TEST_VALID_PARAM( mbedtls_sha1_free( NULL ) );
21 TEST_INVALID_PARAM( mbedtls_sha1_init( NULL ) );
23 TEST_INVALID_PARAM( mbedtls_sha1_clone( NULL, &ctx ) );
24 TEST_INVALID_PARAM( mbedtls_sha1_clone( &ctx, NULL ) );
27 mbedtls_sha1_starts_ret( NULL ) );
30 mbedtls_sha1_update_ret( NULL, buf, buflen ) );
32 mbedtls_sha1_update_ret( &ctx, NULL, buflen ) );
35 mbedtls_sha1_finish_ret( NULL, buf ) );
37 mbedtls_sha1_finish_ret( &ctx, NULL ) );
40 mbedtls_internal_sha1_process( NULL, buf ) );
[all …]
Dtest_suite_dhm.function15 unsigned char *buf_null = NULL;
20 TEST_INVALID_PARAM( mbedtls_dhm_init( NULL ) );
21 TEST_VALID_PARAM( mbedtls_dhm_free( NULL ) );
24 mbedtls_dhm_read_params( NULL,
30 mbedtls_dhm_read_params( &ctx, NULL, buf ) );
34 NULL ) );
37 mbedtls_dhm_make_params( NULL, buflen,
40 NULL ) );
43 NULL, &len,
45 NULL ) );
[all …]
Dtest_suite_ecdsa.function23 TEST_INVALID_PARAM( mbedtls_ecdsa_init( NULL ) );
24 TEST_VALID_PARAM( mbedtls_ecdsa_free( NULL ) );
27 TEST_INVALID_PARAM( mbedtls_ecdsa_restart_init( NULL ) );
28 TEST_VALID_PARAM( mbedtls_ecdsa_restart_free( NULL ) );
32 mbedtls_ecdsa_sign( NULL, &m, &m, &m,
35 NULL ) );
37 mbedtls_ecdsa_sign( &grp, NULL, &m, &m,
40 NULL ) );
42 mbedtls_ecdsa_sign( &grp, &m, NULL, &m,
45 NULL ) );
[all …]
Dtest_suite_asn1write.function49 data->output = NULL;
63 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
83 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
103 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
124 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
144 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
171 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
225 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
305 generic_write_data_t data = { NULL, NULL, NULL, NULL, 0 };
333 { {0x06, 0, NULL}, {0, 0, NULL}, NULL, 0 },
[all …]
Dtest_suite_memory_buffer_alloc.function15 if( p == NULL )
39 unsigned char *ptr_a = NULL, *ptr_b = NULL, *ptr_c = NULL, *ptr_d = NULL,
40 *ptr_e = NULL, *ptr_f = NULL;
92 ptr_a = NULL;
101 ptr_b = NULL;
110 ptr_c = NULL;
119 ptr_d = NULL;
147 if( ptr_a != NULL )
150 ptr_a = NULL;
154 if( ptr_b != NULL )
[all …]
Dtest_suite_ecp.function19 TEST_VALID_PARAM( mbedtls_ecp_group_free( NULL ) );
20 TEST_VALID_PARAM( mbedtls_ecp_keypair_free( NULL ) );
21 TEST_VALID_PARAM( mbedtls_ecp_point_free( NULL ) );
24 TEST_VALID_PARAM( mbedtls_ecp_restart_free( NULL ) );
44 const unsigned char *null_buf = NULL;
50 TEST_INVALID_PARAM( mbedtls_ecp_point_init( NULL ) );
51 TEST_INVALID_PARAM( mbedtls_ecp_keypair_init( NULL ) );
52 TEST_INVALID_PARAM( mbedtls_ecp_group_init( NULL ) );
55 TEST_INVALID_PARAM( mbedtls_ecp_restart_init( NULL ) );
56 TEST_INVALID_PARAM( mbedtls_ecp_check_budget( NULL, &restart_ctx, 42 ) );
[all …]
Dtest_suite_pk.function52 mbedtls_test_rnd_std_rand, NULL,
68 mbedtls_test_rnd_std_rand, NULL );
80 mbedtls_test_rnd_std_rand, NULL, mode,
91 mbedtls_test_rnd_std_rand, NULL, mode,
182 NULL, NULL )
186 NULL, NULL )
222 void *options = NULL;
226 TEST_VALID_PARAM( mbedtls_pk_free( NULL ) );
229 TEST_VALID_PARAM( mbedtls_pk_restart_free( NULL ) );
232 TEST_ASSERT( mbedtls_pk_setup( &pk, NULL ) ==
[all …]
Dtest_suite_ecdh.function49 TEST_VALID_PARAM( mbedtls_ecdh_free( NULL ) );
63 const unsigned char *buf_null = NULL;
68 TEST_INVALID_PARAM( mbedtls_ecdh_init( NULL ) );
71 TEST_INVALID_PARAM( mbedtls_ecdh_enable_restart( NULL ) );
75 mbedtls_ecdh_gen_public( NULL, &m, &P,
77 NULL ) );
79 mbedtls_ecdh_gen_public( &grp, NULL, &P,
81 NULL ) );
83 mbedtls_ecdh_gen_public( &grp, &m, NULL,
85 NULL ) );
[all …]
/openthread-2.7.6/examples/apps/ncp/
DMakefile.am33 $(NULL)
40 $(NULL)
44 $(NULL)
47 $(NULL)
50 $(NULL)
55 $(NULL)
58 $(NULL)
61 $(NULL)
64 $(NULL)
69 $(NULL)
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/library/
Dpk.c57 PK_VALIDATE( ctx != NULL ); in mbedtls_pk_init()
59 ctx->pk_info = NULL; in mbedtls_pk_init()
60 ctx->pk_ctx = NULL; in mbedtls_pk_init()
68 if( ctx == NULL ) in mbedtls_pk_free()
71 if ( ctx->pk_info != NULL ) in mbedtls_pk_free()
83 PK_VALIDATE( ctx != NULL ); in mbedtls_pk_restart_init()
84 ctx->pk_info = NULL; in mbedtls_pk_restart_init()
85 ctx->rs_ctx = NULL; in mbedtls_pk_restart_init()
93 if( ctx == NULL || ctx->pk_info == NULL || in mbedtls_pk_restart_free()
94 ctx->pk_info->rs_free_func == NULL ) in mbedtls_pk_restart_free()
[all …]
Dcipher_wrap.c93 if( ctx != NULL ) in gcm_ctx_alloc()
112 if( ctx != NULL ) in ccm_ctx_alloc()
214 if( aes == NULL ) in aes_ctx_alloc()
215 return( NULL ); in aes_ctx_alloc()
244 NULL,
247 NULL,
447 if( xts_ctx != NULL ) in xts_aes_ctx_alloc()
457 if( xts_ctx == NULL ) in xts_aes_ctx_free()
466 NULL,
468 NULL,
[all …]
Decdsa.c85 if( ctx == NULL ) in ecdsa_restart_ver_free()
127 if( ctx == NULL ) in ecdsa_restart_sig_free()
161 if( ctx == NULL ) in ecdsa_restart_det_free()
170 #define ECDSA_RS_ECP ( rs_ctx == NULL ? NULL : &rs_ctx->ecp )
179 if( rs_ctx != NULL && rs_ctx->ecp.depth++ == 0 ) \
184 rs_ctx != NULL && rs_ctx->SUB == NULL ) \
187 if( rs_ctx->SUB == NULL ) \
197 if( rs_ctx != NULL && rs_ctx->SUB != NULL && \
202 rs_ctx->SUB = NULL; \
205 if( rs_ctx != NULL ) \
[all …]
Doid.c55 if( p == NULL || oid == NULL ) return( NULL ); \
56 while( cur->asn1 != NULL ) { \
64 return( NULL ); \
75 if( data == NULL ) return( MBEDTLS_ERR_OID_NOT_FOUND ); \
88 if( data == NULL ) return( MBEDTLS_ERR_OID_NOT_FOUND ); \
103 if( data == NULL ) return( MBEDTLS_ERR_OID_NOT_FOUND ); \
117 while( cur->descriptor.asn1 != NULL ) { \
138 while( cur->descriptor.asn1 != NULL ) { \
236 { NULL, 0, NULL, NULL },
237 NULL,
[all …]
Dpkwrite.c82 if ( ( ret = mbedtls_rsa_export( rsa, NULL, NULL, NULL, NULL, &T ) ) != 0 || in pk_write_rsa_pubkey()
88 if ( ( ret = mbedtls_rsa_export( rsa, &T, NULL, NULL, NULL, NULL ) ) != 0 || in pk_write_rsa_pubkey()
182 PK_VALIDATE_RET( p != NULL ); in mbedtls_pk_write_pubkey()
183 PK_VALIDATE_RET( *p != NULL ); in mbedtls_pk_write_pubkey()
184 PK_VALIDATE_RET( start != NULL ); in mbedtls_pk_write_pubkey()
185 PK_VALIDATE_RET( key != NULL ); in mbedtls_pk_write_pubkey()
233 PK_VALIDATE_RET( key != NULL ); in mbedtls_pk_write_pubkey_der()
236 PK_VALIDATE_RET( buf != NULL ); in mbedtls_pk_write_pubkey_der()
319 PK_VALIDATE_RET( key != NULL ); in mbedtls_pk_write_key_der()
322 PK_VALIDATE_RET( buf != NULL ); in mbedtls_pk_write_key_der()
[all …]
Drsa_internal.c88 if( P == NULL || Q == NULL || P->p != NULL || Q->p != NULL ) in mbedtls_rsa_deduce_primes()
162 MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( Q, NULL, N, P ) ); in mbedtls_rsa_deduce_primes()
205 if( D == NULL || mbedtls_mpi_cmp_int( D, 0 ) != 0 ) in mbedtls_rsa_deduce_private_exponent()
227 MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( &K, NULL, &K, D ) ); in mbedtls_rsa_deduce_private_exponent()
254 if( DP != NULL ) in mbedtls_rsa_validate_crt()
256 if( P == NULL ) in mbedtls_rsa_validate_crt()
274 if( DQ != NULL ) in mbedtls_rsa_validate_crt()
276 if( Q == NULL ) in mbedtls_rsa_validate_crt()
294 if( QP != NULL ) in mbedtls_rsa_validate_crt()
296 if( P == NULL || Q == NULL ) in mbedtls_rsa_validate_crt()
[all …]
Dmemory_buffer_alloc.c111 while( cur != NULL ) in debug_chain()
120 while( cur != NULL ) in debug_chain()
154 if( hdr->prev != NULL && hdr->prev == hdr->next ) in verify_header()
162 if( hdr->prev_free != NULL && hdr->prev_free == hdr->next_free ) in verify_header()
177 if( prv == NULL || verify_header( prv ) != 0 ) in verify_chain()
186 if( heap.first->prev != NULL ) in verify_chain()
197 while( cur != NULL ) in verify_chain()
235 if( heap.buf == NULL || heap.first == NULL ) in buffer_alloc_calloc()
236 return( NULL ); in buffer_alloc_calloc()
241 return( NULL ); in buffer_alloc_calloc()
[all …]
Dcipher.c126 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_type()
130 return( NULL ); in mbedtls_cipher_info_from_type()
138 if( NULL == cipher_name ) in mbedtls_cipher_info_from_string()
139 return( NULL ); in mbedtls_cipher_info_from_string()
141 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_string()
145 return( NULL ); in mbedtls_cipher_info_from_string()
155 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_values()
161 return( NULL ); in mbedtls_cipher_info_from_values()
166 CIPHER_VALIDATE( ctx != NULL ); in mbedtls_cipher_init()
172 if( ctx == NULL ) in mbedtls_cipher_free()
[all …]
Dssl_cache.c57 mbedtls_time_t t = mbedtls_time( NULL ); in mbedtls_ssl_cache_get()
68 entry = NULL; in mbedtls_ssl_cache_get()
70 while( cur != NULL ) in mbedtls_ssl_cache_get()
102 if( entry->peer_cert.p != NULL ) in mbedtls_ssl_cache_get()
109 sizeof(mbedtls_x509_crt) ) ) == NULL ) in mbedtls_ssl_cache_get()
120 session->peer_cert = NULL; in mbedtls_ssl_cache_get()
144 mbedtls_time_t t = mbedtls_time( NULL ), oldest = 0; in mbedtls_ssl_cache_set()
145 mbedtls_ssl_cache_entry *old = NULL; in mbedtls_ssl_cache_set()
157 prv = NULL; in mbedtls_ssl_cache_set()
159 while( cur != NULL ) in mbedtls_ssl_cache_set()
[all …]
Drsa.c97 RSA_VALIDATE_RET( ctx != NULL ); in mbedtls_rsa_import()
99 if( ( N != NULL && ( ret = mbedtls_mpi_copy( &ctx->N, N ) ) != 0 ) || in mbedtls_rsa_import()
100 ( P != NULL && ( ret = mbedtls_mpi_copy( &ctx->P, P ) ) != 0 ) || in mbedtls_rsa_import()
101 ( Q != NULL && ( ret = mbedtls_mpi_copy( &ctx->Q, Q ) ) != 0 ) || in mbedtls_rsa_import()
102 ( D != NULL && ( ret = mbedtls_mpi_copy( &ctx->D, D ) ) != 0 ) || in mbedtls_rsa_import()
103 ( E != NULL && ( ret = mbedtls_mpi_copy( &ctx->E, E ) ) != 0 ) ) in mbedtls_rsa_import()
108 if( N != NULL ) in mbedtls_rsa_import()
122 RSA_VALIDATE_RET( ctx != NULL ); in mbedtls_rsa_import_raw()
124 if( N != NULL ) in mbedtls_rsa_import_raw()
130 if( P != NULL ) in mbedtls_rsa_import_raw()
[all …]
/openthread-2.7.6/examples/apps/cli/
DMakefile.am33 $(NULL)
40 $(NULL)
44 $(NULL)
47 $(NULL)
50 $(NULL)
55 $(NULL)
60 $(NULL)
66 $(NULL)
71 $(NULL)
79 $(NULL)
[all …]
/openthread-2.7.6/src/posix/
DMakefile.am35 $(NULL)
41 $(NULL)
53 $(NULL)
61 $(NULL)
66 $(NULL)
72 $(NULL)
76 $(NULL)
83 $(NULL)
88 $(NULL)
94 $(NULL)
[all …]
/openthread-2.7.6/tests/fuzz/
DMakefile.am36 $(NULL)
41 $(NULL)
48 $(NULL)
53 $(NULL)
58 $(NULL)
63 $(NULL)
67 $(NULL)
72 $(NULL)
76 $(NULL)
81 $(NULL)
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/programs/pkey/
Dkey_app.c123 if( ( q = strchr( p, '=' ) ) == NULL ) in main()
159 if( ( f = fopen( opt.password_file, "rb" ) ) == NULL ) in main()
164 if( fgets( buf, sizeof(buf), f ) == NULL ) in main()
210 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "N: ", &N, 16, NULL ) ); in main()
211 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "E: ", &E, 16, NULL ) ); in main()
212 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "D: ", &D, 16, NULL ) ); in main()
213 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "P: ", &P, 16, NULL ) ); in main()
214 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "Q: ", &Q, 16, NULL ) ); in main()
215 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "DP: ", &DP, 16, NULL ) ); in main()
216 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "DQ: ", &DQ, 16, NULL ) ); in main()
[all …]

12345678910>>...12