Lines Matching refs:ScopedBIGNUM
100 static bool test_lshift(FILE *fp, BN_CTX *ctx, ScopedBIGNUM a);
207 ScopedBIGNUM sample(BN_bin2bn(kSample, sizeof(kSample) - 1, NULL)); in main()
349 ScopedBIGNUM a(BN_new()); in test_add()
350 ScopedBIGNUM b(BN_new()); in test_add()
351 ScopedBIGNUM c(BN_new()); in test_add()
388 ScopedBIGNUM a(BN_new()); in test_sub()
389 ScopedBIGNUM b(BN_new()); in test_sub()
390 ScopedBIGNUM c(BN_new()); in test_sub()
434 ScopedBIGNUM a(BN_new()); in test_div()
435 ScopedBIGNUM b(BN_new()); in test_div()
436 ScopedBIGNUM c(BN_new()); in test_div()
437 ScopedBIGNUM d(BN_new()); in test_div()
438 ScopedBIGNUM e(BN_new()); in test_div()
515 ScopedBIGNUM a(BN_new()); in test_lshift1()
516 ScopedBIGNUM b(BN_new()); in test_lshift1()
517 ScopedBIGNUM c(BN_new()); in test_lshift1()
550 ScopedBIGNUM a(BN_new()); in test_rshift()
551 ScopedBIGNUM b(BN_new()); in test_rshift()
552 ScopedBIGNUM c(BN_new()); in test_rshift()
553 ScopedBIGNUM d(BN_new()); in test_rshift()
554 ScopedBIGNUM e(BN_new()); in test_rshift()
586 ScopedBIGNUM a(BN_new()); in test_rshift1()
587 ScopedBIGNUM b(BN_new()); in test_rshift1()
588 ScopedBIGNUM c(BN_new()); in test_rshift1()
620 static bool test_lshift(FILE *fp, BN_CTX *ctx, ScopedBIGNUM a) { in test_lshift()
629 ScopedBIGNUM b(BN_new()); in test_lshift()
630 ScopedBIGNUM c(BN_new()); in test_lshift()
631 ScopedBIGNUM d(BN_new()); in test_lshift()
672 ScopedBIGNUM a(BN_new()); in test_mul()
673 ScopedBIGNUM b(BN_new()); in test_mul()
674 ScopedBIGNUM c(BN_new()); in test_mul()
675 ScopedBIGNUM d(BN_new()); in test_mul()
676 ScopedBIGNUM e(BN_new()); in test_mul()
731 ScopedBIGNUM a(BN_new()); in test_sqr()
732 ScopedBIGNUM c(BN_new()); in test_sqr()
733 ScopedBIGNUM d(BN_new()); in test_sqr()
734 ScopedBIGNUM e(BN_new()); in test_sqr()
833 ScopedBIGNUM a(BN_new()); in test_div_word()
834 ScopedBIGNUM b(BN_new()); in test_div_word()
886 ScopedBIGNUM a(BN_new()); in test_mont()
887 ScopedBIGNUM b(BN_new()); in test_mont()
888 ScopedBIGNUM c(BN_new()); in test_mont()
889 ScopedBIGNUM d(BN_new()); in test_mont()
890 ScopedBIGNUM A(BN_new()); in test_mont()
891 ScopedBIGNUM B(BN_new()); in test_mont()
892 ScopedBIGNUM n(BN_new()); in test_mont()
939 ScopedBIGNUM a(BN_new()); in test_mod()
940 ScopedBIGNUM b(BN_new()); in test_mod()
941 ScopedBIGNUM c(BN_new()); in test_mod()
942 ScopedBIGNUM d(BN_new()); in test_mod()
943 ScopedBIGNUM e(BN_new()); in test_mod()
979 ScopedBIGNUM a(BN_new()); in test_mod_mul()
980 ScopedBIGNUM b(BN_new()); in test_mod_mul()
981 ScopedBIGNUM c(BN_new()); in test_mod_mul()
982 ScopedBIGNUM d(BN_new()); in test_mod_mul()
983 ScopedBIGNUM e(BN_new()); in test_mod_mul()
1037 ScopedBIGNUM a(BN_new()); in test_mod_exp()
1038 ScopedBIGNUM b(BN_new()); in test_mod_exp()
1039 ScopedBIGNUM c(BN_new()); in test_mod_exp()
1040 ScopedBIGNUM d(BN_new()); in test_mod_exp()
1041 ScopedBIGNUM e(BN_new()); in test_mod_exp()
1077 ScopedBIGNUM a(BN_new()); in test_mod_exp_mont_consttime()
1078 ScopedBIGNUM b(BN_new()); in test_mod_exp_mont_consttime()
1079 ScopedBIGNUM c(BN_new()); in test_mod_exp_mont_consttime()
1080 ScopedBIGNUM d(BN_new()); in test_mod_exp_mont_consttime()
1081 ScopedBIGNUM e(BN_new()); in test_mod_exp_mont_consttime()
1120 ScopedBIGNUM a(BN_new()); in test_mod_exp_mont5()
1121 ScopedBIGNUM p(BN_new()); in test_mod_exp_mont5()
1122 ScopedBIGNUM m(BN_new()); in test_mod_exp_mont5()
1123 ScopedBIGNUM d(BN_new()); in test_mod_exp_mont5()
1124 ScopedBIGNUM e(BN_new()); in test_mod_exp_mont5()
1185 ScopedBIGNUM a(BN_new()); in test_exp()
1186 ScopedBIGNUM b(BN_new()); in test_exp()
1187 ScopedBIGNUM d(BN_new()); in test_exp()
1188 ScopedBIGNUM e(BN_new()); in test_exp()
1229 ScopedBIGNUM zero(BN_new()); in test_exp_mod_zero()
1236 ScopedBIGNUM r(BN_new()); in test_exp_mod_zero()
1253 ScopedBIGNUM a(BN_new()); in test_mod_sqrt()
1254 ScopedBIGNUM p(BN_new()); in test_mod_sqrt()
1255 ScopedBIGNUM r(BN_new()); in test_mod_sqrt()
1315 ScopedBIGNUM r(BN_new()); in test_small_prime()
1330 ScopedBIGNUM n(BN_new()); in test_sqrt()
1331 ScopedBIGNUM nn(BN_new()); in test_sqrt()
1332 ScopedBIGNUM sqrt(BN_new()); in test_sqrt()
1380 ScopedBIGNUM n(BN_new()); in test_bn2bin_padded()
1444 static int DecimalToBIGNUM(ScopedBIGNUM *out, const char *in) { in DecimalToBIGNUM()
1452 ScopedBIGNUM bn; in test_dec2bn()
1486 static int HexToBIGNUM(ScopedBIGNUM *out, const char *in) { in HexToBIGNUM()
1494 ScopedBIGNUM bn; in test_hex2bn()
1528 static ScopedBIGNUM ASCIIToBIGNUM(const char *in) { in ASCIIToBIGNUM()
1533 return ScopedBIGNUM(raw); in ASCIIToBIGNUM()
1537 ScopedBIGNUM bn = ASCIIToBIGNUM("0"); in test_asc2bn()
1589 ScopedBIGNUM bn(BN_new()); in test_rand()