Lines Matching refs:mbedtls_printf
32 #define mbedtls_printf printf macro
63 mbedtls_printf("MBEDTLS_AES_C and/or MBEDTLS_DHM_C and/or MBEDTLS_ENTROPY_C " in main()
99 mbedtls_printf( "\n . Seeding the random number generator" ); in main()
107 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
114 mbedtls_printf( "\n . Reading private key from rsa_priv.txt" ); in main()
120 mbedtls_printf( " failed\n ! Could not open rsa_priv.txt\n" \ in main()
136 mbedtls_printf( " failed\n ! mbedtls_mpi_read_file returned %d\n\n", ret ); in main()
148 mbedtls_printf( "\n . Reading DH parameters from dh_prime.txt" ); in main()
154 mbedtls_printf( " failed\n ! Could not open dh_prime.txt\n" \ in main()
162 mbedtls_printf( " failed\n ! Invalid DH parameter file\n\n" ); in main()
172 mbedtls_printf( "\n . Waiting for a remote connection" ); in main()
177 mbedtls_printf( " failed\n ! mbedtls_net_bind returned %d\n\n", ret ); in main()
184 mbedtls_printf( " failed\n ! mbedtls_net_accept returned %d\n\n", ret ); in main()
191 mbedtls_printf( "\n . Sending the server's DH parameters" ); in main()
199 mbedtls_printf( " failed\n ! mbedtls_dhm_make_params returned %d\n\n", ret ); in main()
214 mbedtls_printf( " failed\n ! mbedtls_rsa_pkcs1_sign returned %d\n\n", ret ); in main()
225 mbedtls_printf( " failed\n ! mbedtls_net_send returned %d\n\n", ret ); in main()
232 mbedtls_printf( "\n . Receiving the client's public value" ); in main()
239 mbedtls_printf( " failed\n ! mbedtls_net_recv returned %d\n\n", ret ); in main()
245 mbedtls_printf( " failed\n ! mbedtls_dhm_read_public returned %d\n\n", ret ); in main()
252 mbedtls_printf( "\n . Shared secret: " ); in main()
258 mbedtls_printf( " failed\n ! mbedtls_dhm_calc_secret returned %d\n\n", ret ); in main()
263 mbedtls_printf( "%02x", buf[n] ); in main()
273 mbedtls_printf( "...\n . Encrypting and sending the ciphertext" ); in main()
282 mbedtls_printf( " failed\n ! mbedtls_net_send returned %d\n\n", ret ); in main()
286 mbedtls_printf( "\n\n" ); in main()
300 mbedtls_printf( " + Press Enter to exit this program.\n" ); in main()