Home | History | Annotate | Download | only in ecdsa

Lines Matching defs:out

49  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
102 int x9_62_test_internal(BIO *out, int nid, const char *r, const char *s);
181 int x9_62_test_internal(BIO *out, int nid, const char *r_in, const char *s_in)
198 BIO_printf(out, "testing %s: ", OBJ_nid2sn(nid));
204 BIO_printf(out, ".");
205 (void)BIO_flush(out);
210 BIO_printf(out, ".");
211 (void)BIO_flush(out);
220 BIO_printf(out, ".");
221 (void)BIO_flush(out);
225 BIO_printf(out, ".");
226 (void)BIO_flush(out);
228 BIO_printf(out, " ok\n");
232 BIO_printf(out, " failed\n");
245 int x9_62_tests(BIO *out)
249 BIO_printf(out, "some tests from X9.62:\n");
255 if (!x9_62_test_internal(out, NID_X9_62_prime192v1,
259 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)
303 BIO_printf(out, "ERROR: unable to get random data\n");
309 BIO_printf(out, "\ntesting ECDSA_sign() and ECDSA_verify() "
319 BIO_printf(out, "malloc error\n");
325 BIO_printf(out, "unable to get internal curves\n");
354 BIO_printf(out, "%s: ", OBJ_nid2sn(nid));
358 BIO_printf(out, " failed\n");
372 BIO_printf(out, " failed\n");
376 BIO_printf(out, ".");
377 (void)BIO_flush(out);
381 BIO_printf(out, " failed\n");
384 BIO_printf(out, ".");
385 (void)BIO_flush(out);
392 BIO_printf(out, " failed\n");
395 BIO_printf(out, ".");
396 (void)BIO_flush(out);
400 BIO_printf(out, " failed\n");
403 BIO_printf(out, ".");
404 (void)BIO_flush(out);
409 BIO_printf(out, " failed\n");
412 BIO_printf(out, ".");
413 (void)BIO_flush(out);
418 BIO_printf(out, " failed\n");
421 BIO_printf(out, ".");
422 (void)BIO_flush(out);
427 BIO_printf(out, " failed\n");
430 BIO_printf(out, ".");
431 (void)BIO_flush(out);
439 BIO_printf(out, " failed\n");
449 BIO_printf(out, " failed\n");
473 BIO_printf(out, " failed\n");
486 BIO_printf(out, " failed\n");
489 BIO_printf(out, ".");
490 (void)BIO_flush(out);
492 BIO_printf(out, " ok\n");
529 BIO *out;
531 out = BIO_new_fp(stdout, BIO_NOCLOSE);
553 if (!x9_62_tests(out)) goto err;
554 if (!test_builtin(out)) goto err;
559 BIO_printf(out, "\nECDSA test failed\n");
561 BIO_printf(out, "\nECDSA test passed\n");
563 ERR_print_errors(out);
567 CRYPTO_mem_leaks(out);
568 if (out != NULL)
569 BIO_free(out);