Searched refs:gcd (Results 1 – 3 of 3) sorted by relevance
/test/testutil/ |
A D | driver.c | 84 static int gcd(int a, int b) in gcd() function 368 while (jstep == 0 || gcd(all_tests[i].num, jstep) != 1); in run_tests()
|
/test/ |
A D | bntest.c | 1786 BIGNUM *a = NULL, *b = NULL, *gcd = NULL, *ret = NULL; in file_gcd() local 1791 || !TEST_ptr(gcd = getBN(s, "GCD")) in file_gcd() 1796 || !equalBN("gcd(A,B)", gcd, ret)) in file_gcd() 1803 BN_free(gcd); in file_gcd() 2823 BIGNUM *a = NULL, *b = NULL, *gcd = NULL; in test_gcd_prime() local 2828 || !TEST_ptr(gcd = BN_new())) in test_gcd_prime() 2836 || !TEST_true(BN_gcd(gcd, a, b, ctx)) in test_gcd_prime() 2837 || !TEST_true(BN_is_one(gcd)) in test_gcd_prime() 2846 BN_free(gcd); in test_gcd_prime()
|
/test/recipes/10-test_bn_data/ |
A D | bngcd.txt | 10 # These test vectors satisfy gcd(A, B) = GCD. 17 # gcd(1,0) = 1 22 # gcd(1,1) = 1 27 # gcd(0,a) = a 32 # gcd(-a,0) = |a| 38 # gcd(2**i - 1, 2**(i/2) - 1) = 2**(i/2) - 1 39 # gcd(2**i - 1, 2**(i/2) + 1) = 2**(i/2) + 1
|
Completed in 61 milliseconds