Lines Matching refs:NULL

66     return NULL;  in findattr()
74 char *bigstring = glue_strings(bn_strings, NULL); in parse_bigBN()
86 *out = NULL; in parseBN()
92 *out = NULL; in parsedecBN()
99 BIGNUM *ret = NULL; in getBN()
101 if ((hex = findattr(s, attribute)) == NULL) { in getBN()
103 return NULL; in getBN()
108 return NULL; in getBN()
153 BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL; in test_swap()
241 BIGNUM *a = NULL, *b = NULL, *c = NULL; in test_sub()
278 BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL; in test_div_recip()
279 BN_RECP_CTX *recp = NULL; in test_div_recip()
335 if (bn == NULL) in set_signed_bn()
336 return NULL; in set_signed_bn()
339 return NULL; in set_signed_bn()
347 BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL; in test_signed_mod_replace_ab()
370 BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL; in test_signed_mod_replace_ba()
393 BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL; in test_mod()
445 NULL
465 NULL
474 BIGNUM *a = NULL, *p = NULL, *m = NULL, *d = NULL, *e = NULL; in test_modexp_mont5()
475 BIGNUM *b = NULL, *n = NULL, *c = NULL; in test_modexp_mont5()
476 BN_MONT_CTX *mont = NULL; in test_modexp_mont5()
497 if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL))) in test_modexp_mont5()
553 NULL in test_modexp_mont5()
568 NULL in test_modexp_mont5()
659 NULL}; in test_modexp_mont5()
669 NULL}; in test_modexp_mont5()
679 NULL}; in test_modexp_mont5()
684 || !TEST_true(BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL)) in test_modexp_mont5()
694 if (!TEST_true(BN_mod_exp_mont_consttime(d, a, p, m, ctx, NULL)) in test_modexp_mont5()
707 || !TEST_true(BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL)) in test_modexp_mont5()
714 && TEST_true(BN_mod_exp_mont_consttime(d, e, p, m, ctx, NULL)) in test_modexp_mont5()
737 BIGNUM *a = NULL, *b = NULL, *c = NULL; in test_gf2m_add()
771 BIGNUM *a = NULL, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL, *e = NULL; in test_gf2m_mod()
811 BIGNUM *a, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL; in test_gf2m_mul()
812 BIGNUM *e = NULL, *f = NULL, *g = NULL, *h = NULL; in test_gf2m_mul()
864 BIGNUM *a = NULL, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL; in test_gf2m_sqr()
903 BIGNUM *a = NULL, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL; in test_gf2m_modinv()
948 BIGNUM *a = NULL, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL; in test_gf2m_moddiv()
949 BIGNUM *e = NULL, *f = NULL; in test_gf2m_moddiv()
992 BIGNUM *a = NULL, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL; in test_gf2m_modexp()
993 BIGNUM *e = NULL, *f = NULL; in test_gf2m_modexp()
1040 BIGNUM *a = NULL, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL; in test_gf2m_modsqrt()
1041 BIGNUM *e = NULL, *f = NULL; in test_gf2m_modsqrt()
1085 BIGNUM *a = NULL, *b[2] = {NULL, NULL}, *c = NULL, *d = NULL; in test_gf2m_modsolvequad()
1086 BIGNUM *e = NULL; in test_gf2m_modsolvequad()
1139 BIGNUM *a = NULL, *b = NULL, *r = NULL, *t = NULL; in test_kronecker()
1158 if (!TEST_true(BN_generate_prime_ex(b, 512, 0, NULL, NULL, NULL))) in test_kronecker()
1217 BIGNUM *a = NULL, *b = NULL, *sum = NULL, *ret = NULL; in file_sum()
1326 BIGNUM *a = NULL, *lshift1 = NULL, *zero = NULL, *ret = NULL; in file_lshift1()
1327 BIGNUM *two = NULL, *remainder = NULL; in file_lshift1()
1358 || !TEST_true(BN_div(ret, NULL /* rem */ , lshift1, two, ctx)) in file_lshift1()
1378 BIGNUM *a = NULL, *lshift = NULL, *ret = NULL; in file_lshift()
1403 BIGNUM *a = NULL, *rshift = NULL, *ret = NULL; in file_rshift()
1433 BIGNUM *a = NULL, *square = NULL, *zero = NULL, *ret = NULL; in file_square()
1434 BIGNUM *remainder = NULL, *tmp = NULL; in file_square()
1493 BIGNUM *a = NULL, *b = NULL, *product = NULL, *ret = NULL; in file_product()
1494 BIGNUM *remainder = NULL, *zero = NULL; in file_product()
1530 BIGNUM *a = NULL, *b = NULL, *quotient = NULL, *remainder = NULL; in file_quotient()
1531 BIGNUM *ret = NULL, *ret2 = NULL, *nnmod = NULL; in file_quotient()
1614 BIGNUM *a = NULL, *b = NULL, *m = NULL, *mod_mul = NULL, *ret = NULL; in file_modmul()
1634 if (mont == NULL || a_tmp == NULL || b_tmp == NULL in file_modmul()
1666 BIGNUM *a = NULL, *e = NULL, *m = NULL, *mod_exp = NULL, *ret = NULL; in file_modexp()
1667 BIGNUM *b = NULL, *c = NULL, *d = NULL; in file_modexp()
1683 if (!TEST_true(BN_mod_exp_mont(ret, a, e, m, ctx, NULL)) in file_modexp()
1686 ctx, NULL)) in file_modexp()
1721 BIGNUM *a = NULL, *e = NULL, *exp = NULL, *ret = NULL; in file_exp()
1745 BIGNUM *a = NULL, *p = NULL, *mod_sqrt = NULL, *ret = NULL, *ret2 = NULL; in file_modsqrt()
1786 BIGNUM *a = NULL, *b = NULL, *gcd = NULL, *ret = NULL; in file_gcd()
1818 if (!TEST_int_eq(BN_bn2binpad(n, NULL, 0), 0)) in test_bn2padded()
1837 if (!TEST_int_eq(BN_bn2binpad(n, NULL, 0), -1)) in test_bn2padded()
1932 BIGNUM *bn = NULL, *bn2 = NULL; in test_bn2signed()
1951 if (!TEST_ptr(bn2 = BN_signed_bin2bn(scratch, sizeof(scratch), NULL)) in test_bn2signed()
1956 bn2 = NULL; in test_bn2signed()
1959 if (!TEST_ptr(bn2 = BN_signed_lebin2bn(reversed, sizeof(reversed), NULL)) in test_bn2signed()
1964 bn2 = NULL; in test_bn2signed()
1978 if (!TEST_ptr(bn2 = BN_signed_lebin2bn(scratch, sizeof(scratch), NULL)) in test_bn2signed()
1983 bn2 = NULL; in test_bn2signed()
1986 if (!TEST_ptr(bn2 = BN_signed_bin2bn(reversed, sizeof(reversed), NULL)) in test_bn2signed()
1999 BIGNUM *bn = NULL; in test_dec2bn()
2010 bn = NULL; in test_dec2bn()
2020 bn = NULL; in test_dec2bn()
2030 bn = NULL; in test_dec2bn()
2041 bn = NULL; in test_dec2bn()
2050 bn = NULL; in test_dec2bn()
2068 BIGNUM *bn = NULL; in test_hex2bn()
2077 bn = NULL; in test_hex2bn()
2087 bn = NULL; in test_hex2bn()
2097 bn = NULL; in test_hex2bn()
2107 bn = NULL; in test_hex2bn()
2116 bn = NULL; in test_hex2bn()
2134 BIGNUM *bn = NULL; in test_asc2bn()
2200 BIGNUM *bn = NULL; in test_mpi()
2201 BIGNUM *bn2 = NULL; in test_mpi()
2207 mpi_len = BN_bn2mpi(bn, NULL); in test_mpi()
2215 if (!TEST_ptr(bn2 = BN_mpi2bn(scratch, mpi_len, NULL))) in test_mpi()
2233 BIGNUM *zbn = NULL; in test_bin2zero()
2244 || !TEST_ptr(fn(NULL, 0, zbn)) \ in test_bin2zero()
2263 BIGNUM *bn_be = NULL, *bn_expected_be = NULL; in test_bin2bn_lengths()
2264 BIGNUM *bn_le = NULL, *bn_expected_le = NULL; in test_bin2bn_lengths()
2300 BIGNUM *bn = NULL; in test_rand()
2353 BIGNUM *rng = NULL, *val = NULL; in test_rand_range_single()
2406 BIGNUM *a = NULL, *b = NULL, *c = NULL, *d = NULL; in test_negzero()
2407 BIGNUM *numerator = NULL, *denominator = NULL; in test_negzero()
2453 numerator = denominator = NULL; in test_negzero()
2475 BIGNUM *a = NULL, *b = NULL, *zero = NULL; in test_badmod()
2476 BN_MONT_CTX *mont = NULL; in test_badmod()
2499 zero, ctx, NULL))) in test_badmod()
2504 zero, ctx, NULL))) in test_badmod()
2521 b, ctx, NULL))) in test_badmod()
2526 b, ctx, NULL))) in test_badmod()
2541 BIGNUM *a = NULL, *r = NULL, *zero = NULL; in test_expmodzero()
2550 if (!TEST_true(BN_mod_exp(r, a, zero, BN_value_one(), NULL)) in test_expmodzero()
2553 NULL, NULL)) in test_expmodzero()
2557 NULL, NULL)) in test_expmodzero()
2560 BN_value_one(), NULL, NULL)) in test_expmodzero()
2592 if (!TEST_true(BN_mod_exp(r, a, p, m, NULL)) in test_expmodone()
2594 || !TEST_true(BN_mod_exp_mont(r, a, p, m, NULL, NULL)) in test_expmodone()
2596 || !TEST_true(BN_mod_exp_mont_consttime(r, a, p, m, NULL, NULL)) in test_expmodone()
2598 || !TEST_true(BN_mod_exp_mont_word(r, 1, p, m, NULL, NULL)) in test_expmodone()
2600 || !TEST_true(BN_mod_exp_simple(r, a, p, m, NULL)) in test_expmodone()
2602 || !TEST_true(BN_mod_exp_recp(r, a, p, m, NULL)) in test_expmodone()
2629 NULL, NULL, NULL))) in test_smallprime()
2633 NULL, NULL, NULL)) in test_smallprime()
2654 NULL, NULL, NULL))) in test_smallsafeprime()
2658 NULL, NULL, NULL)) in test_smallsafeprime()
2674 BIGNUM *r = NULL; in test_is_prime()
2682 || !TEST_int_eq(BN_check_prime(r, ctx, NULL), in test_is_prime()
2698 BIGNUM *r = NULL; in test_not_prime()
2706 || !TEST_false(BN_check_prime(r, ctx, NULL))) in test_not_prime()
2779 BN_CTX *nctx = NULL; in test_ctx_consttime_flag()
2780 BN_CTX *sctx = NULL; in test_ctx_consttime_flag()
2804 BIGNUM *a = NULL, *b = NULL; in test_coprime()
2823 BIGNUM *a = NULL, *b = NULL, *gcd = NULL; in test_gcd_prime()
2831 if (!TEST_true(BN_generate_prime_ex(a, 1024, 0, NULL, NULL, NULL))) in test_gcd_prime()
2835 NULL, NULL, NULL)) in test_gcd_prime()
3063 BIGNUM* result = NULL; in test_mod_exp()
3064 BIGNUM *base = NULL, *exponent = NULL, *modulo = NULL; in test_mod_exp()
3065 char *s = NULL; in test_mod_exp()
3097 BIGNUM* result = NULL; in test_mod_exp_consttime()
3098 BIGNUM *base = NULL, *exponent = NULL, *modulo = NULL; in test_mod_exp_consttime()
3099 char *s = NULL; in test_mod_exp_consttime()
3138 BIGNUM *exp_result = NULL; in test_mod_exp2_mont()
3139 BIGNUM *exp_a1 = NULL, *exp_p1 = NULL, *exp_a2 = NULL, *exp_p2 = NULL, in test_mod_exp2_mont()
3140 *exp_m = NULL; in test_mod_exp2_mont()
3160 exp_p2, exp_m, ctx, NULL), 0)) in test_mod_exp2_mont()
3178 char *str = NULL; in test_mod_inverse()
3179 BIGNUM *a = NULL; in test_mod_inverse()
3180 BIGNUM *b = NULL; in test_mod_inverse()
3181 BIGNUM *r = NULL; in test_mod_inverse()
3191 if (!TEST_ptr_ne(str = BN_bn2dec(r), NULL)) in test_mod_inverse()
3213 char *str = NULL; in test_mod_exp_alias()
3214 BIGNUM *a = NULL; in test_mod_exp_alias()
3215 BIGNUM *b = NULL; in test_mod_exp_alias()
3216 BIGNUM *c = NULL; in test_mod_exp_alias()
3217 BIGNUM *r = NULL; in test_mod_exp_alias()
3231 if (!TEST_ptr_ne(str = BN_bn2dec(r), NULL)) in test_mod_exp_alias()
3237 str = NULL; in test_mod_exp_alias()
3245 if (!TEST_ptr_ne(str = BN_bn2dec(r), NULL)) in test_mod_exp_alias()
3251 str = NULL; in test_mod_exp_alias()
3260 if (!TEST_ptr_ne(str = BN_bn2dec(c), NULL)) in test_mod_exp_alias()
3297 if (findattr(s, tp->name) != NULL) { in file_test_run()
3312 STANZA *s = NULL; in run_file_tests()
3353 { NULL } in test_get_options()