testcase
bn_gcd_test(const struct gcd_test *testcase)
if (!BN_hex2bn(&a, testcase->a))
errx(1, "a = hex2bn(%s)", testcase->a);
if (!BN_hex2bn(&b, testcase->b))
errx(1, "b = hex2bn(%s)", testcase->b);
if (!BN_hex2bn(&want, testcase->r))
errx(1, "want = hex2bn(%s)", testcase->r);
test->name, testcase->a, testcase->b);
fprintf(stderr, "a: %s\n", testcase->a);
fprintf(stderr, "b: %s\n", testcase->b);
test->name, i, signs, testcase->r);
BIGNUM *n, *n_sqr, *lower, *upper, *testcase, *isqrt;
if ((testcase = BN_CTX_get(ctx)) == NULL)
if (!bn_rand_in_range(testcase, n_sqr, upper))
if (!bn_isqrt(isqrt, &is_perfect_square, testcase, ctx))
(is_perfect_square && BN_cmp(n_sqr, testcase) != 0)) {
BN_print_fp(stderr, testcase);
if (!BN_sub(testcase, n_sqr, BN_value_one()))
if (!bn_isqrt(isqrt, &is_perfect_square, testcase, ctx))
size_t testcase = 0;
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase >= N_TESTCASES)
test = &bn_print_tests[testcase++];
if (testcase != N_TESTCASES) {
const struct testcase *test = testCases + i;
test_client_or_server_method(struct ssl_method_test_data *testcase)
if ((ssl_ctx = SSL_CTX_new(testcase->method())) == NULL) {
if (SSL_is_server(ssl) != testcase->server) {
testcase->name, testcase->server, SSL_is_server(ssl));
test_dtls_method(struct ssl_method_test_data *testcase)
if ((ssl_ctx = SSL_CTX_new(testcase->method())) == NULL) {
if (SSL_is_dtls(ssl) != testcase->dtls) {
testcase->name, testcase->dtls, SSL_is_dtls(ssl));