Lines Matching refs:mbedtls_printf
33 #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()
127 mbedtls_printf( " failed\n ! Could not open or read %s\n\n", argv[1] ); in main()
134 mbedtls_printf( " failed\n ! mbedtls_rsa_pkcs1_sign returned -0x%0x\n\n", -ret ); in main()
146 mbedtls_printf( " failed\n ! Could not create %s\n\n", argv[1] ); in main()
156 mbedtls_printf( "\n . Done (created \"%s\")\n\n", filename ); in main()
163 mbedtls_printf( " + Press Enter to exit this program.\n" ); in main()