• Home
  • Raw
  • Download

Lines Matching refs:out

109 static void *KDF1_SHA1(const void *in, size_t inlen, void *out, size_t *outlen)  in KDF1_SHA1()  argument
116 return SHA1(in, inlen, out); in KDF1_SHA1()
123 static int test_ecdh_curve(int nid, const char *text, BN_CTX *ctx, BIO *out) in test_ecdh_curve() argument
146 BIO_puts(out,"Testing key generation with "); in test_ecdh_curve()
147 BIO_puts(out,text); in test_ecdh_curve()
149 BIO_puts(out,"\n"); in test_ecdh_curve()
151 (void)BIO_flush(out); in test_ecdh_curve()
167 BIO_puts(out," pri 1="); in test_ecdh_curve()
168 BN_print(out,a->priv_key); in test_ecdh_curve()
169 BIO_puts(out,"\n pub 1="); in test_ecdh_curve()
170 BN_print(out,x_a); in test_ecdh_curve()
171 BIO_puts(out,","); in test_ecdh_curve()
172 BN_print(out,y_a); in test_ecdh_curve()
173 BIO_puts(out,"\n"); in test_ecdh_curve()
175 BIO_printf(out," ."); in test_ecdh_curve()
176 (void)BIO_flush(out); in test_ecdh_curve()
193 BIO_puts(out," pri 2="); in test_ecdh_curve()
194 BN_print(out,b->priv_key); in test_ecdh_curve()
195 BIO_puts(out,"\n pub 2="); in test_ecdh_curve()
196 BN_print(out,x_b); in test_ecdh_curve()
197 BIO_puts(out,","); in test_ecdh_curve()
198 BN_print(out,y_b); in test_ecdh_curve()
199 BIO_puts(out,"\n"); in test_ecdh_curve()
201 BIO_printf(out,"."); in test_ecdh_curve()
202 (void)BIO_flush(out); in test_ecdh_curve()
210 BIO_puts(out," key1 ="); in test_ecdh_curve()
214 BIO_puts(out,buf); in test_ecdh_curve()
216 BIO_puts(out,"\n"); in test_ecdh_curve()
218 BIO_printf(out,"."); in test_ecdh_curve()
219 (void)BIO_flush(out); in test_ecdh_curve()
227 BIO_puts(out," key2 ="); in test_ecdh_curve()
231 BIO_puts(out,buf); in test_ecdh_curve()
233 BIO_puts(out,"\n"); in test_ecdh_curve()
235 BIO_printf(out,"."); in test_ecdh_curve()
236 (void)BIO_flush(out); in test_ecdh_curve()
242 BIO_printf(out, " failed\n\n"); in test_ecdh_curve()
243 BIO_printf(out, "key a:\n"); in test_ecdh_curve()
244 BIO_printf(out, "private key: "); in test_ecdh_curve()
245 BN_print(out, EC_KEY_get0_private_key(a)); in test_ecdh_curve()
246 BIO_printf(out, "\n"); in test_ecdh_curve()
247 BIO_printf(out, "public key (x,y): "); in test_ecdh_curve()
248 BN_print(out, x_a); in test_ecdh_curve()
249 BIO_printf(out, ","); in test_ecdh_curve()
250 BN_print(out, y_a); in test_ecdh_curve()
251 BIO_printf(out, "\nkey b:\n"); in test_ecdh_curve()
252 BIO_printf(out, "private key: "); in test_ecdh_curve()
253 BN_print(out, EC_KEY_get0_private_key(b)); in test_ecdh_curve()
254 BIO_printf(out, "\n"); in test_ecdh_curve()
255 BIO_printf(out, "public key (x,y): "); in test_ecdh_curve()
256 BN_print(out, x_b); in test_ecdh_curve()
257 BIO_printf(out, ","); in test_ecdh_curve()
258 BN_print(out, y_b); in test_ecdh_curve()
259 BIO_printf(out, "\n"); in test_ecdh_curve()
260 BIO_printf(out, "generated key a: "); in test_ecdh_curve()
264 BIO_puts(out, buf); in test_ecdh_curve()
266 BIO_printf(out, "\n"); in test_ecdh_curve()
267 BIO_printf(out, "generated key b: "); in test_ecdh_curve()
271 BIO_puts(out,buf); in test_ecdh_curve()
273 BIO_printf(out, "\n"); in test_ecdh_curve()
281 BIO_printf(out, " ok\n"); in test_ecdh_curve()
303 BIO *out; in main() local
315 out=BIO_new(BIO_s_file()); in main()
316 if (out == NULL) EXIT(1); in main()
317 BIO_set_fp(out,stdout,BIO_NOCLOSE); in main()
322 if (!test_ecdh_curve(NID_X9_62_prime192v1, "NIST Prime-Curve P-192", ctx, out)) goto err; in main()
323 if (!test_ecdh_curve(NID_secp224r1, "NIST Prime-Curve P-224", ctx, out)) goto err; in main()
324 if (!test_ecdh_curve(NID_X9_62_prime256v1, "NIST Prime-Curve P-256", ctx, out)) goto err; in main()
325 if (!test_ecdh_curve(NID_secp384r1, "NIST Prime-Curve P-384", ctx, out)) goto err; in main()
326 if (!test_ecdh_curve(NID_secp521r1, "NIST Prime-Curve P-521", ctx, out)) goto err; in main()
328 if (!test_ecdh_curve(NID_sect163k1, "NIST Binary-Curve K-163", ctx, out)) goto err; in main()
329 if (!test_ecdh_curve(NID_sect163r2, "NIST Binary-Curve B-163", ctx, out)) goto err; in main()
330 if (!test_ecdh_curve(NID_sect233k1, "NIST Binary-Curve K-233", ctx, out)) goto err; in main()
331 if (!test_ecdh_curve(NID_sect233r1, "NIST Binary-Curve B-233", ctx, out)) goto err; in main()
332 if (!test_ecdh_curve(NID_sect283k1, "NIST Binary-Curve K-283", ctx, out)) goto err; in main()
333 if (!test_ecdh_curve(NID_sect283r1, "NIST Binary-Curve B-283", ctx, out)) goto err; in main()
334 if (!test_ecdh_curve(NID_sect409k1, "NIST Binary-Curve K-409", ctx, out)) goto err; in main()
335 if (!test_ecdh_curve(NID_sect409r1, "NIST Binary-Curve B-409", ctx, out)) goto err; in main()
336 if (!test_ecdh_curve(NID_sect571k1, "NIST Binary-Curve K-571", ctx, out)) goto err; in main()
337 if (!test_ecdh_curve(NID_sect571r1, "NIST Binary-Curve B-571", ctx, out)) goto err; in main()
344 BIO_free(out); in main()