Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 175) sorted by relevance

1234567

/mbedtls-development/library/
A Dpkparse.c148 return( ret ); in mbedtls_pk_parse_keyfile()
171 return( ret ); in mbedtls_pk_parse_public_keyfile()
387 int ret = 0; in pk_group_id_from_group() local
423 return( ret ); in pk_group_id_from_group()
445 return( ret ); in pk_group_id_from_specified()
512 return( ret ); in pk_get_ecpubkey()
669 if( ret != 0 ) in mbedtls_pk_parse_subpubkey()
672 return( ret ); in mbedtls_pk_parse_subpubkey()
690 int ret; in asn1_get_nonzero_mpi() local
693 if( ret != 0 ) in asn1_get_nonzero_mpi()
[all …]
A Dentropy.c144 return( ret ); in mbedtls_entropy_add_source()
157 int ret = 0; in entropy_update() local
203 return( ret ); in entropy_update()
223 return( ret ); in mbedtls_entropy_update_manual()
407 ret = 0; in mbedtls_entropy_func()
466 ret = 0; in mbedtls_entropy_write_seed_file()
479 int ret = 0; in mbedtls_entropy_update_seed_file() local
529 int ret = 0; in mbedtls_entropy_source_self_test_gather() local
546 ret = 1; in mbedtls_entropy_source_self_test_gather()
582 int ret = 0; in mbedtls_entropy_source_self_test() local
[all …]
A Dssl_tls13_keys.c206 int ret = 0; in mbedtls_ssl_tls1_3_make_traffic_keys() local
213 if( ret != 0 ) in mbedtls_ssl_tls1_3_make_traffic_keys()
254 int ret; in mbedtls_ssl_tls1_3_derive_secret() local
343 ret = 0; in mbedtls_ssl_tls1_3_evolve_secret()
358 int ret; in mbedtls_ssl_tls1_3_derive_early_secrets() local
412 int ret; in mbedtls_ssl_tls1_3_derive_handshake_secrets() local
474 int ret; in mbedtls_ssl_tls1_3_derive_application_secrets() local
544 int ret; in mbedtls_ssl_tls1_3_derive_resumption_master_secret() local
604 int ret; in ssl_tls1_3_calc_finished_core() local
704 int ret = 0; in mbedtls_ssl_tls1_3_create_psk_binder() local
[all …]
A Dchachapoly.c126 return( ret ); in mbedtls_chachapoly_setkey()
140 if( ret != 0 ) in mbedtls_chachapoly_starts()
151 if( ret != 0 ) in mbedtls_chachapoly_starts()
156 if( ret == 0 ) in mbedtls_chachapoly_starts()
166 return( ret ); in mbedtls_chachapoly_starts()
270 if( ret != 0 ) in mbedtls_chachapoly_finish()
275 return( ret ); in mbedtls_chachapoly_finish()
291 if( ret != 0 ) in chachapoly_crypt_and_tag()
295 if( ret != 0 ) in chachapoly_crypt_and_tag()
299 if( ret != 0 ) in chachapoly_crypt_and_tag()
[all …]
A Dx509_crl.c109 return( ret ); in x509_get_crl_ext()
246 return( ret ); in x509_get_entries()
396 return( ret ); in mbedtls_x509_crl_parse_der()
430 return( ret ); in mbedtls_x509_crl_parse_der()
442 return( ret ); in mbedtls_x509_crl_parse_der()
468 return( ret ); in mbedtls_x509_crl_parse_der()
479 if( ret != 0 ) in mbedtls_x509_crl_parse_der()
502 return( ret ); in mbedtls_x509_crl_parse_der()
518 return( ret ); in mbedtls_x509_crl_parse_der()
559 if( ret == 0 ) in mbedtls_x509_crl_parse()
[all …]
A Ddhm.c70 int ret, n; in dhm_read_bignum() local
104 int ret = 0; in dhm_check_range() local
118 return( ret ); in dhm_check_range()
197 int ret; in dhm_random_below() local
210 int ret = 0; in dhm_make_common() local
252 int ret; in mbedtls_dhm_make_params() local
290 if( ret != 0 && ret > -128 ) in mbedtls_dhm_make_params()
343 int ret; in mbedtls_dhm_make_public() local
360 if( ret != 0 && ret > -128 ) in mbedtls_dhm_make_public()
375 int ret; in dhm_update_blinding() local
[all …]
A Dx509.c65 #define CHECK(code) if( ( ret = ( code ) ) != 0 ){ return( ret ); }
239 return( ret ); in mbedtls_x509_get_rsassa_pss_params()
264 return( ret ); in mbedtls_x509_get_rsassa_pss_params()
623 if( ret != 0 ) in mbedtls_x509_get_time()
681 if( ret != 0 ) in mbedtls_x509_get_sig_alg()
716 if( ret != 0 ) in mbedtls_x509_get_ext()
772 if( ret == 0 ) in mbedtls_x509_dn_gets()
848 if( ret != 0 ) in mbedtls_x509_sig_alg_gets()
905 int ret = 0; in x509_get_current_time() local
911 ret = -1; in x509_get_current_time()
[all …]
A Dx509_csr.c159 return( ret ); in mbedtls_x509_csr_parse_der()
185 return( ret ); in mbedtls_x509_csr_parse_der()
196 return( ret ); in mbedtls_x509_csr_parse_der()
227 return( ret ); in mbedtls_x509_csr_parse_der()
241 return( ret ); in mbedtls_x509_csr_parse_der()
276 ret = mbedtls_pem_read_buffer( &pem, in mbedtls_x509_csr_parse()
288 if( ret == 0 ) in mbedtls_x509_csr_parse()
298 return( ret ); in mbedtls_x509_csr_parse()
315 return( ret ); in mbedtls_x509_csr_parse_file()
322 return( ret ); in mbedtls_x509_csr_parse_file()
[all …]
A Dssl_ticket.c81 return( ret ); in ssl_ticket_gen_key()
84 return( ret ); in ssl_ticket_gen_key()
93 return( ret ); in ssl_ticket_gen_key()
154 if( ret != 0 && ret != MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) in mbedtls_ssl_ticket_setup()
155 return( ret ); in mbedtls_ssl_ticket_setup()
161 return( ret ); in mbedtls_ssl_ticket_setup()
166 if( ret != 0 && ret != MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) in mbedtls_ssl_ticket_setup()
167 return( ret ); in mbedtls_ssl_ticket_setup()
171 return( ret ); in mbedtls_ssl_ticket_setup()
273 return( ret ); in mbedtls_ssl_ticket_write()
[all …]
A Dssl_tls13_client.c304 if( ret != 0 ) in ssl_tls13_generate_and_write_ecdh_key_exchange()
349 return( ret ); in ssl_tls13_get_default_group_id()
681 int ret; in ssl_tls13_write_client_hello_body() local
830 int ret; in ssl_tls13_prepare_client_hello() local
855 int ret = 0; in ssl_tls13_write_client_hello() local
884 return ret; in ssl_tls13_write_client_hello()
1429 int ret; in ssl_tls13_process_encrypted_extensions() local
1464 int ret = 0; in ssl_tls13_parse_encrypted_extensions() local
1578 int ret; in ssl_tls1_3_process_server_certificate() local
1593 int ret; in ssl_tls1_3_process_certificate_verify() local
[all …]
A Dcmac.c146 return( ret ); in cmac_generate_subkeys()
230 int ret = 0; in mbedtls_cipher_cmac_update() local
290 return( ret ); in mbedtls_cipher_cmac_update()
351 return( ret ); in mbedtls_cipher_cmac_finish()
390 if( ret != 0 ) in mbedtls_cipher_cmac()
394 if( ret != 0 ) in mbedtls_cipher_cmac()
402 return( ret ); in mbedtls_cipher_cmac()
450 return( ret ); in mbedtls_aes_cmac_prf_128()
827 ret = 0; in cmac_test_subkeys()
834 return( ret ); in cmac_test_subkeys()
[all …]
A Dpkcs5.c114 int ret, iterations = 0, keylen = 0; in mbedtls_pkcs5_pbes2() local
153 return( ret ); in mbedtls_pkcs5_pbes2()
214 return( ret ); in mbedtls_pkcs5_pbes2()
243 return( ret ); in mbedtls_pkcs5_pbkdf2_hmac()
297 return( ret ); in mbedtls_pkcs5_pbkdf2_hmac()
367 int ret, i; in mbedtls_pkcs5_self_test() local
375 ret = 1; in mbedtls_pkcs5_self_test()
381 ret = 1; in mbedtls_pkcs5_self_test()
394 if( ret != 0 || in mbedtls_pkcs5_self_test()
400 ret = 1; in mbedtls_pkcs5_self_test()
[all …]
A Dpkwrite.c85 len += ret; in pk_write_rsa_pubkey()
91 len += ret; in pk_write_rsa_pubkey()
96 if( ret < 0 ) in pk_write_rsa_pubkey()
166 if( ret != 0 ) in pk_write_ec_private()
172 return( ret ); in pk_write_ec_private()
342 len += ret; in mbedtls_pk_write_key_der()
348 len += ret; in mbedtls_pk_write_key_der()
354 len += ret; in mbedtls_pk_write_key_der()
361 len += ret; in mbedtls_pk_write_key_der()
368 len += ret; in mbedtls_pk_write_key_der()
[all …]
A Dssl_tls13_generic.c41 int ret; in mbedtls_ssl_tls1_3_fetch_handshake_msg() local
71 return( ret ); in mbedtls_ssl_tls1_3_fetch_handshake_msg()
109 return( ret ); in mbedtls_ssl_tls13_finish_handshake_msg()
421 if( ret != 0 ) in ssl_tls13_parse_certificate_verify()
477 if( ret != 0 ) in mbedtls_ssl_tls13_process_certificate_verify()
507 return( ret ); in mbedtls_ssl_tls13_process_certificate_verify()
676 return( ret ); in ssl_tls13_parse_certificate()
696 int ret = 0; in ssl_tls13_validate_certificate() local
725 if( ret != 0 ) in ssl_tls13_validate_certificate()
768 if( ret != 0 ) in ssl_tls13_validate_certificate()
[all …]
A Dhmac_drbg.c104 return( ret ); in mbedtls_hmac_drbg_update()
117 return( ret ); in mbedtls_hmac_drbg_seed_buf()
130 return( ret ); in mbedtls_hmac_drbg_seed_buf()
134 return( ret ); in mbedtls_hmac_drbg_seed_buf()
217 return( ret ); in hmac_drbg_reseed_core()
384 return( ret ); in mbedtls_hmac_drbg_random_with_add()
407 return( ret ); in mbedtls_hmac_drbg_random()
448 ret = 0; in mbedtls_hmac_drbg_write_seed_file()
454 return( ret ); in mbedtls_hmac_drbg_write_seed_file()
459 int ret = 0; in mbedtls_hmac_drbg_update_seed_file() local
[all …]
/mbedtls-development/programs/ssl/
A Ddtls_server.c101 int ret, len; in main() local
166 if( ret != 0 ) in main()
174 if( ret != 0 ) in main()
182 if( ret != 0 ) in main()
311 ret = 0; in main()
354 len = ret; in main()
367 if( ret < 0 ) in main()
373 len = ret; in main()
385 ret = 0; in main()
425 if( ret < 0 ) in main()
[all …]
A Dssl_mail_client.c653 if( ret < 200 || ret > 299 ) in main()
667 if( ret < 200 || ret > 299 ) in main()
679 if( ret < 200 || ret > 299 ) in main()
693 if( ret < 200 || ret > 299 ) in main()
707 if( ret < 200 || ret > 299 ) in main()
727 if( ret < 200 || ret > 399 ) in main()
747 if( ret < 300 || ret > 399 ) in main()
782 if( ret < 200 || ret > 299 ) in main()
795 if( ret < 200 || ret > 299 ) in main()
808 if( ret < 300 || ret > 399 ) in main()
[all …]
A Dssl_server.c92 int ret, len; in main() local
152 if( ret != 0 ) in main()
160 if( ret != 0 ) in main()
169 if( ret != 0 ) in main()
232 if( ret != 0 ) in main()
293 if( ret <= 0 ) in main()
313 len = ret; in main()
316 if( ret > 0 ) in main()
345 len = ret; in main()
362 ret = 0; in main()
[all …]
A Dssl_pthread_server.c122 int ret, len; in handle_ssl_connection() local
198 len = ret; in handle_ssl_connection()
232 len = ret; in handle_ssl_connection()
251 ret = 0; in handle_ssl_connection()
256 if( ret != 0 ) in handle_ssl_connection()
275 int ret, i; in thread_create() local
315 int ret; in main() local
387 if( ret != 0 ) in main()
395 if( ret != 0 ) in main()
405 if( ret != 0 ) in main()
[all …]
A Ddtls_client.c93 int ret, len; in main() local
145 if( ret < 0 ) in main()
222 if( ret != 0 ) in main()
268 if( ret < 0 ) in main()
274 len = ret; in main()
290 if( ret <= 0 ) in main()
311 len = ret; in main()
323 ret = 0; in main()
333 if( ret != 0 ) in main()
355 if( ret < 0 ) in main()
[all …]
A Dssl_fork_server.c150 if( ret != 0 ) in main()
158 if( ret != 0 ) in main()
167 if( ret != 0 ) in main()
305 if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE ) in main()
328 if( ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE ) in main()
331 if( ret <= 0 ) in main()
333 switch( ret ) in main()
351 len = ret; in main()
354 if( ret > 0 ) in main()
379 if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE ) in main()
[all …]
A Dssl_client1.c81 int ret = 1, len; in main() local
129 if( ret < 0 ) in main()
135 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
198 if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE ) in main()
240 if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE ) in main()
247 len = ret; in main()
262 if( ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE ) in main()
268 if( ret < 0 ) in main()
274 if( ret == 0 ) in main()
280 len = ret; in main()
[all …]
A Dssl_client2.c570 int ret; in report_cid_usage() local
590 if( ret != 0 ) in report_cid_usage()
1598 ret = 0; in main()
1629 if( ret < 0 ) in main()
1647 ret = 0; in main()
1665 ret = 0; in main()
2127 ret = idle( &server_fd, &timer, ret ); in main()
2129 ret = idle( &server_fd, ret ); in main()
2686 ret = 0; in main()
2913 ret = 0; in main()
[all …]
/mbedtls-development/programs/pkey/
A Decdh_curve25519.c53 int ret = 1; in main() local
91 if( ret != 0 ) in main()
99 if( ret != 0 ) in main()
106 if( ret != 0 ) in main()
121 if( ret != 0 ) in main()
129 if( ret != 0 ) in main()
136 if( ret != 0 ) in main()
151 if( ret != 0 ) in main()
158 if( ret != 0 ) in main()
167 if( ret != 0 ) in main()
[all …]
A Ddh_server.c74 int ret = 1; in main() local
135 ( ret = mbedtls_mpi_read_file( &Q , 16, f ) ) != 0 ) in main()
138 ret ); in main()
147 ret ); in main()
151 if( ( ret = mbedtls_rsa_complete( &rsa ) ) != 0 ) in main()
154 ret ); in main()
193 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main()
218 if( ( ret = mbedtls_sha1( buf, n, hash ) ) != 0 ) in main()
293 ret = mbedtls_aes_setkey_enc( &aes, buf, 256 ); in main()
294 if( ret != 0 ) in main()
[all …]

Completed in 52 milliseconds

1234567