• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/openssl-0.9.8e/test/

Lines Matching refs:out

102 int x9_62_test_internal(BIO *out, int nid, const char *r, const char *s);
182 int x9_62_test_internal(BIO *out, int nid, const char *r_in, const char *s_in)
199 BIO_printf(out, "testing %s: ", OBJ_nid2sn(nid));
205 BIO_printf(out, ".");
206 BIO_flush(out);
211 BIO_printf(out, ".");
212 BIO_flush(out);
221 BIO_printf(out, ".");
222 BIO_flush(out);
226 BIO_printf(out, ".");
227 BIO_flush(out);
229 BIO_printf(out, " ok\n");
233 BIO_printf(out, " failed\n");
246 int x9_62_tests(BIO *out)
250 BIO_printf(out, "some tests from X9.62:\n");
256 if (!x9_62_test_internal(out, NID_X9_62_prime192v1,
260 if (!x9_62_test_internal(out, NID_X9_62_prime239v1,
266 if (!x9_62_test_internal(out, NID_X9_62_c2tnb191v1,
270 if (!x9_62_test_internal(out, NID_X9_62_c2tnb239v1,
284 int test_builtin(BIO *out)
299 BIO_printf(out, "ERROR: unable to get random data\n");
305 BIO_printf(out, "\ntesting ECDSA_sign() and ECDSA_verify() "
315 BIO_printf(out, "malloc error\n");
321 BIO_printf(out, "unable to get internal curves\n");
349 BIO_printf(out, "%s: ", OBJ_nid2sn(nid));
353 BIO_printf(out, " failed\n");
367 BIO_printf(out, " failed\n");
371 BIO_printf(out, ".");
372 BIO_flush(out);
376 BIO_printf(out, " failed\n");
379 BIO_printf(out, ".");
380 BIO_flush(out);
387 BIO_printf(out, " failed\n");
390 BIO_printf(out, ".");
391 BIO_flush(out);
395 BIO_printf(out, " failed\n");
398 BIO_printf(out, ".");
399 BIO_flush(out);
404 BIO_printf(out, " failed\n");
407 BIO_printf(out, ".");
408 BIO_flush(out);
413 BIO_printf(out, " failed\n");
416 BIO_printf(out, ".");
417 BIO_flush(out);
424 BIO_printf(out, " failed\n");
427 BIO_printf(out, ".");
428 BIO_flush(out);
430 BIO_printf(out, " ok\n");
457 BIO *out;
459 out = BIO_new_fp(stdout, BIO_NOCLOSE);
481 if (!x9_62_tests(out)) goto err;
482 if (!test_builtin(out)) goto err;
487 BIO_printf(out, "\nECDSA test failed\n");
489 BIO_printf(out, "\nECDSA test passed\n");
491 ERR_print_errors(out);
495 CRYPTO_mem_leaks(out);
496 if (out != NULL)
497 BIO_free(out);