Lines Matching refs:fprintf

67 	fprintf(stderr, "Plain RSA key generator, part of %s\n", TOP_PACKAGE_STRING);  in usage()
68 fprintf(stderr, "By Michal Ludvig (http://www.logix.cz/michal)\n"); in usage()
69 fprintf(stderr, "\n"); in usage()
70 fprintf(stderr, "Usage: %s [options]\n", argv0); in usage()
71 fprintf(stderr, "\n"); in usage()
72 fprintf(stderr, " -b bits Generate <bits> long RSA key (default=1024)\n"); in usage()
73 fprintf(stderr, " -e pubexp Public exponent to use (default=0x3)\n"); in usage()
74 fprintf(stderr, " -f filename Filename to store the key to (default=stdout)\n"); in usage()
75 fprintf(stderr, " -h Help\n"); in usage()
76 fprintf(stderr, "\n"); in usage()
77 fprintf(stderr, "Report bugs to <ipsec-tools-devel@lists.sourceforge.net>\n"); in usage()
126 fprintf(stderr, "RSA_generate_key(): %s\n", eay_strerror()); in gen_rsa_key()
132 fprintf(stderr, "mix_b64_pubkey(): %s\n", eay_strerror()); in gen_rsa_key()
136 fprintf(fp, "# : PUB 0s%s\n", pubkey64->v); in gen_rsa_key()
137 fprintf(fp, ": RSA\t{\n"); in gen_rsa_key()
138 fprintf(fp, "\t# RSA %zu bits\n", bits); in gen_rsa_key()
139 fprintf(fp, "\t# pubkey=0s%s\n", pubkey64->v); in gen_rsa_key()
140 fprintf(fp, "\tModulus: 0x%s\n", lowercase(BN_bn2hex(key->n))); in gen_rsa_key()
141 fprintf(fp, "\tPublicExponent: 0x%s\n", lowercase(BN_bn2hex(key->e))); in gen_rsa_key()
142 fprintf(fp, "\tPrivateExponent: 0x%s\n", lowercase(BN_bn2hex(key->d))); in gen_rsa_key()
143 fprintf(fp, "\tPrime1: 0x%s\n", lowercase(BN_bn2hex(key->p))); in gen_rsa_key()
144 fprintf(fp, "\tPrime2: 0x%s\n", lowercase(BN_bn2hex(key->q))); in gen_rsa_key()
145 fprintf(fp, "\tExponent1: 0x%s\n", lowercase(BN_bn2hex(key->dmp1))); in gen_rsa_key()
146 fprintf(fp, "\tExponent2: 0x%s\n", lowercase(BN_bn2hex(key->dmq1))); in gen_rsa_key()
147 fprintf(fp, "\tCoefficient: 0x%s\n", lowercase(BN_bn2hex(key->iqmp))); in gen_rsa_key()
148 fprintf(fp, " }\n"); in gen_rsa_key()
188 fprintf(stderr, "%s: file exists! Please use a different name.\n", fname); in main()
195 fprintf(stderr, "%s: %s\n", fname, strerror(errno)); in main()