Lines Matching refs:mbedtls_printf
32 #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()
143 mbedtls_printf( " ok\n . Generating key pair..." ); in main()
149 mbedtls_printf( " failed\n ! mbedtls_ecdsa_genkey returned %d\n", ret ); in main()
153 mbedtls_printf( " ok (key size: %d bits)\n", (int) ctx_sign.grp.pbits ); in main()
160 mbedtls_printf( " . Signing message..." ); in main()
168 mbedtls_printf( " failed\n ! mbedtls_ecdsa_genkey returned %d\n", ret ); in main()
171 mbedtls_printf( " ok (signature length = %u)\n", (unsigned int) sig_len ); in main()
183 mbedtls_printf( " . Preparing verification context..." ); in main()
188 mbedtls_printf( " failed\n ! mbedtls_ecp_group_copy returned %d\n", ret ); in main()
194 mbedtls_printf( " failed\n ! mbedtls_ecp_copy returned %d\n", ret ); in main()
203 mbedtls_printf( " ok\n . Verifying signature..." ); in main()
210 mbedtls_printf( " failed\n ! mbedtls_ecdsa_read_signature returned %d\n", ret ); in main()
214 mbedtls_printf( " ok\n" ); in main()
219 mbedtls_printf( " + Press Enter to exit this program.\n" ); in main()