Home
last modified time | relevance | path

Searched refs:mbedtls_printf (Results 1 – 25 of 84) sorted by relevance

1234

/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/
Dssl_fork_server.c33 #define mbedtls_printf printf macro
48 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_CERTS_C and/or MBEDTLS_ENTROPY_C " in main()
58 mbedtls_printf("_WIN32 defined. This application requires fork() and signals " in main()
124 mbedtls_printf( "\n . Initial seeding of the random generator..." ); in main()
131 mbedtls_printf( " failed! mbedtls_ctr_drbg_seed returned %d\n\n", ret ); in main()
135 mbedtls_printf( " ok\n" ); in main()
140 mbedtls_printf( " . Loading the server cert. and key..." ); in main()
152 mbedtls_printf( " failed! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
160 mbedtls_printf( " failed! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
168 mbedtls_printf( " failed! mbedtls_pk_parse_key returned %d\n\n", ret ); in main()
[all …]
Ddtls_client.c32 #define mbedtls_printf printf macro
43 mbedtls_printf( "MBEDTLS_SSL_CLI_C and/or MBEDTLS_SSL_PROTO_DTLS and/or " in main()
115 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
123 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
127 mbedtls_printf( " ok\n" ); in main()
132 mbedtls_printf( " . Loading the CA root certificate ..." ); in main()
139 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main()
143 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
148 mbedtls_printf( " . Connecting to udp/%s/%s...", SERVER_NAME, SERVER_PORT ); in main()
154 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main()
[all …]
Dssl_server.c36 #define mbedtls_printf printf macro
47 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_CERTS_C and/or MBEDTLS_ENTROPY_C " in main()
129 mbedtls_printf( "\n . Loading the server cert. and key..." ); in main()
141 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
149 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
157 mbedtls_printf( " failed\n ! mbedtls_pk_parse_key returned %d\n\n", ret ); in main()
161 mbedtls_printf( " ok\n" ); in main()
166 mbedtls_printf( " . Bind on https://localhost:4433/ ..." ); in main()
171 mbedtls_printf( " failed\n ! mbedtls_net_bind returned %d\n\n", ret ); in main()
175 mbedtls_printf( " ok\n" ); in main()
[all …]
Dssl_mail_client.c36 #define mbedtls_printf printf macro
46 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or " in main()
177 mbedtls_printf( " . Performing the SSL/TLS handshake..." ); in do_handshake()
187 mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned %d: %s\n\n", ret, buf ); in do_handshake()
192 mbedtls_printf( " ok\n [ Ciphersuite is %s ]\n", in do_handshake()
198 mbedtls_printf( " . Verifying peer X.509 certificate..." ); in do_handshake()
205 mbedtls_printf( " failed\n" ); in do_handshake()
209 mbedtls_printf( "%s\n", vrfy_buf ); in do_handshake()
212 mbedtls_printf( " ok\n" ); in do_handshake()
214 mbedtls_printf( " . Peer certificate information ...\n" ); in do_handshake()
[all …]
Dssl_client1.c36 #define mbedtls_printf printf macro
46 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or " in main()
108 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
116 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
120 mbedtls_printf( " ok\n" ); in main()
125 mbedtls_printf( " . Loading the CA root certificate ..." ); in main()
132 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main()
136 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
141 mbedtls_printf( " . Connecting to tcp/%s/%s...", SERVER_NAME, SERVER_PORT ); in main()
147 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main()
[all …]
Dssl_pthread_server.c34 #define mbedtls_printf printf macro
47 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_CERTS_C and/or MBEDTLS_ENTROPY_C " in main()
134 mbedtls_printf( " [ #%ld ] Setting up SSL/TLS data\n", thread_id ); in handle_ssl_connection()
141 mbedtls_printf( " [ #%ld ] failed: mbedtls_ssl_setup returned -0x%04x\n", in handle_ssl_connection()
151 mbedtls_printf( " [ #%ld ] Performing the SSL/TLS handshake\n", thread_id ); in handle_ssl_connection()
157 mbedtls_printf( " [ #%ld ] failed: mbedtls_ssl_handshake returned -0x%04x\n", in handle_ssl_connection()
163 mbedtls_printf( " [ #%ld ] ok\n", thread_id ); in handle_ssl_connection()
168 mbedtls_printf( " [ #%ld ] < Read from client\n", thread_id ); in handle_ssl_connection()
184 mbedtls_printf( " [ #%ld ] connection was closed gracefully\n", in handle_ssl_connection()
189 mbedtls_printf( " [ #%ld ] connection was reset by peer\n", in handle_ssl_connection()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/test/
Dssl_cert_test.c33 #define mbedtls_printf printf macro
51 mbedtls_printf("MBEDTLS_RSA_C and/or MBEDTLS_X509_CRT_PARSE_C " in main()
94 mbedtls_printf( "\n . Loading the CA root certificate ..." ); in main()
104 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned %d\n\n", ret ); in main()
108 mbedtls_printf( " ok\n" ); in main()
111 mbedtls_printf("%s\n", buf ); in main()
116 mbedtls_printf( " . Loading the CRL ..." ); in main()
122 mbedtls_printf( " failed\n ! mbedtls_x509_crl_parse_file returned %d\n\n", ret ); in main()
126 mbedtls_printf( " ok\n" ); in main()
129 mbedtls_printf("%s\n", buf ); in main()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/pkey/
Decdh_curve25519.c32 #define mbedtls_printf printf macro
40 mbedtls_printf( "MBEDTLS_ECDH_C and/or " in main()
70 mbedtls_printf( " . Seeding the random number generator..." ); in main()
78 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
82 mbedtls_printf( " ok\n" ); in main()
87 mbedtls_printf( " . Setting up client context..." ); in main()
93 mbedtls_printf( " failed\n ! mbedtls_ecp_group_load returned %d\n", ret ); in main()
101 mbedtls_printf( " failed\n ! mbedtls_ecdh_gen_public returned %d\n", ret ); in main()
108 mbedtls_printf( " failed\n ! mbedtls_mpi_write_binary returned %d\n", ret ); in main()
112 mbedtls_printf( " ok\n" ); in main()
[all …]
Decdsa.c32 #define mbedtls_printf printf macro
62 mbedtls_printf("MBEDTLS_ECDSA_C and/or MBEDTLS_SHA256_C and/or " in main()
72 mbedtls_printf( "%s", title ); in dump_buf()
74 mbedtls_printf("%c%c", "0123456789ABCDEF" [buf[i] / 16], in dump_buf()
76 mbedtls_printf( "\n" ); in dump_buf()
87 mbedtls_printf("internal error\n"); in dump_pubkey()
119 mbedtls_printf( "usage: ecdsa\n" ); in main()
122 mbedtls_printf( "\n" ); in main()
131 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
139 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
[all …]
Ddh_client.c32 #define mbedtls_printf printf macro
63 mbedtls_printf("MBEDTLS_AES_C and/or MBEDTLS_DHM_C and/or MBEDTLS_ENTROPY_C " in main()
98 mbedtls_printf( "\n . Seeding the random number generator" ); in main()
106 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
113 mbedtls_printf( "\n . Reading public key from rsa_pub.txt" ); in main()
119 mbedtls_printf( " failed\n ! Could not open rsa_pub.txt\n" \ in main()
129 mbedtls_printf( " failed\n ! mbedtls_mpi_read_file returned %d\n\n", ret ); in main()
141 mbedtls_printf( "\n . Connecting to tcp/%s/%s", SERVER_NAME, in main()
148 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main()
155 mbedtls_printf( "\n . Receiving the server's DH parameters" ); in main()
[all …]
Ddh_server.c32 #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()
[all …]
Drsa_sign_pss.c33 #define mbedtls_printf printf macro
42 mbedtls_printf("MBEDTLS_MD_C and/or MBEDTLS_ENTROPY_C and/or " in main()
79 mbedtls_printf( "usage: rsa_sign_pss <key_file> <filename>\n" ); in main()
82 mbedtls_printf( "\n" ); in main()
88 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
95 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
99 mbedtls_printf( "\n . Reading private key from '%s'", argv[1] ); in main()
105 mbedtls_printf( " failed\n ! Could not read key from '%s'\n", argv[1] ); in main()
106 mbedtls_printf( " ! mbedtls_pk_parse_public_keyfile returned %d\n\n", ret ); in main()
113 mbedtls_printf( " failed\n ! Key is not an RSA key\n" ); in main()
[all …]
Ddh_genprime.c33 #define mbedtls_printf printf macro
42 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or " in main()
88 mbedtls_printf( USAGE ); in main()
111 mbedtls_printf( " failed\n ! mbedtls_mpi_read_string returned %d\n", ret ); in main()
115 mbedtls_printf( " ! Generating large primes may take minutes!\n" ); in main()
117 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
124 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
128 mbedtls_printf( " ok\n . Generating the modulus, please wait..." ); in main()
137 mbedtls_printf( " failed\n ! mbedtls_mpi_gen_prime returned %d\n\n", ret ); in main()
141 mbedtls_printf( " ok\n . Verifying that Q = (P-1)/2 is prime..." ); in main()
[all …]
Dpk_sign.c33 #define mbedtls_printf printf macro
42 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or " in main()
78 mbedtls_printf( "usage: mbedtls_pk_sign <key_file> <filename>\n" ); in main()
81 mbedtls_printf( "\n" ); in main()
87 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
94 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned -0x%04x\n", -ret ); in main()
98 mbedtls_printf( "\n . Reading private key from '%s'", argv[1] ); in main()
104 mbedtls_printf( " failed\n ! Could not open '%s'\n", argv[1] ); in main()
112 mbedtls_printf( "\n . Generating the SHA-256 signature" ); in main()
119 mbedtls_printf( " failed\n ! Could not open or read %s\n\n", argv[2] ); in main()
[all …]
Dpk_decrypt.c32 #define mbedtls_printf printf macro
53 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_PK_PARSE_C and/or " in main()
78 mbedtls_printf( "usage: mbedtls_pk_decrypt <key_file>\n" ); in main()
81 mbedtls_printf( "\n" ); in main()
87 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
95 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
99 mbedtls_printf( "\n . Reading private key from '%s'", argv[1] ); in main()
106 mbedtls_printf( " failed\n ! mbedtls_pk_parse_keyfile returned -0x%04x\n", -ret ); in main()
117 mbedtls_printf( "\n ! Could not open %s\n\n", "result-enc.txt" ); in main()
132 mbedtls_printf( "\n . Decrypting the encrypted data" ); in main()
[all …]
Drsa_verify_pss.c33 #define mbedtls_printf printf macro
42 mbedtls_printf("MBEDTLS_MD_C and/or MBEDTLS_ENTROPY_C and/or " in main()
73 mbedtls_printf( "usage: rsa_verify_pss <key_file> <filename>\n" ); in main()
76 mbedtls_printf( "\n" ); in main()
82 mbedtls_printf( "\n . Reading public key from '%s'", argv[1] ); in main()
87 mbedtls_printf( " failed\n ! Could not read key from '%s'\n", argv[1] ); in main()
88 mbedtls_printf( " ! mbedtls_pk_parse_public_keyfile returned %d\n\n", ret ); in main()
95 mbedtls_printf( " failed\n ! Key is not an RSA key\n" ); in main()
109 mbedtls_printf( "\n ! Could not open %s\n\n", filename ); in main()
122 mbedtls_printf( "\n . Verifying the RSA/SHA-256 signature" ); in main()
[all …]
Dpk_encrypt.c33 #define mbedtls_printf printf macro
53 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_PK_PARSE_C and/or " in main()
76 mbedtls_printf( "usage: mbedtls_pk_encrypt <key_file> <string of max 100 characters>\n" ); in main()
79 mbedtls_printf( "\n" ); in main()
85 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
93 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned -0x%04x\n", -ret ); in main()
97 mbedtls_printf( "\n . Reading public key from '%s'", argv[1] ); in main()
104 mbedtls_printf( " failed\n ! mbedtls_pk_parse_public_keyfile returned -0x%04x\n", -ret ); in main()
110 mbedtls_printf( " Input data larger than 100 characters.\n\n" ); in main()
119 mbedtls_printf( "\n . Generating the encrypted value" ); in main()
[all …]
Dpk_verify.c33 #define mbedtls_printf printf macro
41 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_MD_C and/or " in main()
69 mbedtls_printf( "usage: mbedtls_pk_verify <key_file> <filename>\n" ); in main()
72 mbedtls_printf( "\n" ); in main()
78 mbedtls_printf( "\n . Reading public key from '%s'", argv[1] ); in main()
83 mbedtls_printf( " failed\n ! mbedtls_pk_parse_public_keyfile returned -0x%04x\n", -ret ); in main()
95 mbedtls_printf( "\n ! Could not open %s\n\n", filename ); in main()
108 mbedtls_printf( "\n . Verifying the SHA-256 signature" ); in main()
115 mbedtls_printf( " failed\n ! Could not open or read %s\n\n", argv[2] ); in main()
122 mbedtls_printf( " failed\n ! mbedtls_pk_verify returned -0x%04x\n", -ret ); in main()
[all …]
Drsa_verify.c32 #define mbedtls_printf printf macro
41 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or " in main()
69 mbedtls_printf( "usage: rsa_verify <filename>\n" ); in main()
72 mbedtls_printf( "\n" ); in main()
78 mbedtls_printf( "\n . Reading public key from rsa_pub.txt" ); in main()
83 mbedtls_printf( " failed\n ! Could not open rsa_pub.txt\n" \ in main()
91 mbedtls_printf( " failed\n ! mbedtls_mpi_read_file returned %d\n\n", ret ); in main()
108 mbedtls_printf( "\n ! Could not open %s\n\n", filename ); in main()
121 mbedtls_printf( "\n ! Invalid RSA signature format\n\n" ); in main()
129 mbedtls_printf( "\n . Verifying the RSA/SHA-256 signature" ); in main()
[all …]
Drsa_decrypt.c33 #define mbedtls_printf printf macro
55 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or " in main()
79 mbedtls_printf( "usage: rsa_decrypt\n" ); in main()
82 mbedtls_printf( "\n" ); in main()
88 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
100 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", in main()
105 mbedtls_printf( "\n . Reading private key from rsa_priv.txt" ); in main()
111 mbedtls_printf( " failed\n ! Could not open rsa_priv.txt\n" \ in main()
126 mbedtls_printf( " failed\n ! mbedtls_mpi_read_file returned %d\n\n", in main()
142 mbedtls_printf( "\n ! Could not open %s\n\n", "result-enc.txt" ); in main()
[all …]
Drsa_sign.c33 #define mbedtls_printf printf macro
42 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or " in main()
70 mbedtls_printf( "usage: rsa_sign <filename>\n" ); in main()
73 mbedtls_printf( "\n" ); in main()
79 mbedtls_printf( "\n . Reading private key from rsa_priv.txt" ); in main()
85 mbedtls_printf( " failed\n ! Could not open rsa_priv.txt\n" \ in main()
99 mbedtls_printf( " failed\n ! mbedtls_mpi_read_file returned %d\n\n", ret ); in main()
108 mbedtls_printf( "\n . Checking the private key" ); in main()
112 mbedtls_printf( " failed\n ! mbedtls_rsa_check_privkey failed with -0x%0x\n", -ret ); in main()
120 mbedtls_printf( "\n . Generating the RSA/SHA-256 signature" ); in main()
[all …]
Drsa_encrypt.c34 #define mbedtls_printf printf macro
55 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or " in main()
77 mbedtls_printf( "usage: rsa_encrypt <string of max 100 characters>\n" ); in main()
80 mbedtls_printf( "\n" ); in main()
86 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
99 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", in main()
104 mbedtls_printf( "\n . Reading public key from rsa_pub.txt" ); in main()
110 mbedtls_printf( " failed\n ! Could not open rsa_pub.txt\n" \ in main()
119 mbedtls_printf( " failed\n ! mbedtls_mpi_read_file returned %d\n\n", in main()
132 mbedtls_printf( " Input data larger than 100 characters.\n\n" ); in main()
[all …]
/net-tools-3.6.0/
Ddtls-client.c38 #define mbedtls_printf printf macro
49 mbedtls_printf("MBEDTLS_SSL_CLI_C and/or MBEDTLS_SSL_PROTO_DTLS and/or " in main()
409 mbedtls_printf("\n . Seeding the random number generator..."); in main()
417 mbedtls_printf(" failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret); in main()
421 mbedtls_printf(" ok\n"); in main()
426 mbedtls_printf(" . Loading the CA root certificate ..."); in main()
431 mbedtls_printf(" failed\n ! mbedtls_x509_crt_parse_file returned -0x%x\n\n", -ret); in main()
435 mbedtls_printf(" ok (%d skipped)\n", ret); in main()
440 mbedtls_printf(" . Connecting to udp/%s/%s...", target, target_port); in main()
446 mbedtls_printf(" failed\n ! mbedtls_net_connect returned %d\n\n", ret); in main()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/
Dcert_write.c32 #define mbedtls_printf printf macro
42 mbedtls_printf( "MBEDTLS_X509_CRT_WRITE_C and/or MBEDTLS_X509_CRT_PARSE_C and/or " in main()
224 mbedtls_printf( USAGE ); in main()
365 mbedtls_printf("\n"); in main()
370 mbedtls_printf( " . Seeding the random number generator..." ); in main()
379 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d - %s\n", ret, buf ); in main()
383 mbedtls_printf( " ok\n" ); in main()
387 mbedtls_printf( " . Reading serial number..." ); in main()
393mbedtls_printf( " failed\n ! mbedtls_mpi_read_string returned -0x%02x - %s\n\n", -ret, buf ); in main()
397 mbedtls_printf( " ok\n" ); in main()
[all …]
Dcert_app.c36 #define mbedtls_printf printf macro
46 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or " in main()
131 mbedtls_printf( "\nVerify requested for (Depth %d):\n", depth ); in my_verify()
133 mbedtls_printf( "%s", buf ); in my_verify()
136 mbedtls_printf( " This certificate has no flags\n" ); in my_verify()
140 mbedtls_printf( "%s\n", buf ); in my_verify()
182 mbedtls_printf( USAGE ); in main()
250 mbedtls_printf( " . Loading the CA root certificate ..." ); in main()
266 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main()
270 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
[all …]

1234