gcd
static int gcd(int, int);
ncycle = gcd(nnonopts, nopts);
BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1,
BIGNUM *p1 = NULL, *gcd = NULL;
gcd = BN_CTX_get(ctx);
if (gcd != NULL) {
BN_set_flags(gcd, BN_FLG_CONSTTIME);
&& BN_gcd(gcd, p1, e, ctx)
&& BN_is_one(gcd);
BIGNUM *r, *p1, *q1, *lcm, *p1q1, *gcd;
gcd = BN_CTX_get(ctx);
if (gcd != NULL) {
BN_set_flags(gcd, BN_FLG_CONSTTIME);
&& (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1,
BN_clear(gcd);
BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1,
&& BN_gcd(gcd, p1, q1, ctx)
&& BN_div(lcm, NULL, p1q1, gcd, ctx); /* LCM((p-1, q-1)) */
BIGNUM *gcd = NULL;
gcd = BN_new();
if (ctx == NULL || gcd == NULL)
if (!BN_gcd(gcd, rsa->n, ossl_bn_get0_small_factors(), ctx)
|| !BN_is_one(gcd)) {
BN_free(gcd);
BIGNUM *p1, *q1, *lcm, *p1q1, *gcd;
gcd = BN_CTX_get(ctx);
if (gcd == NULL)
BN_set_flags(gcd, BN_FLG_CONSTTIME);
if (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, p1q1) != 1)
BN_clear(gcd);
unsigned int tmp, gcd, remainder, lcm, carry;
gcd = blocksize;
tmp = gcd % remainder;
gcd = remainder;
lcm = blocksize * constant_len / gcd;
BIGNUM *a = NULL, *b = NULL, *gcd = NULL, *ret = NULL;
|| !TEST_ptr(gcd = getBN(s, "GCD"))
|| !equalBN("gcd(A,B)", gcd, ret))
BN_free(gcd);
BIGNUM *a = NULL, *b = NULL, *gcd = NULL;
|| !TEST_ptr(gcd = BN_new()))
|| !TEST_true(BN_gcd(gcd, a, b, ctx))
|| !TEST_true(BN_is_one(gcd))
BN_free(gcd);
while (jstep == 0 || gcd(all_tests[i].num, jstep) != 1);
ncycle = gcd(nnonopts, nopts);
static int gcd(int, int);
return ((a * b) / gcd(a, b));
uint64_t gcd;
gcd = lkpi_gcd_64(lkpi_nsec2hz_rem, lkpi_nsec2hz_div);
lkpi_nsec2hz_rem /= gcd;
lkpi_nsec2hz_div /= gcd;
gcd = lkpi_gcd_64(lkpi_usec2hz_rem, lkpi_usec2hz_div);
lkpi_usec2hz_rem /= gcd;
lkpi_usec2hz_div /= gcd;
gcd = lkpi_gcd_64(lkpi_msec2hz_rem, lkpi_msec2hz_div);
lkpi_msec2hz_rem /= gcd;
lkpi_msec2hz_div /= gcd;
return ((a * b) / gcd(a, b));
return ((a * b) / gcd(a, b));
return ((a * b) / gcd(a, b));
return ((a * b) / gcd(a, b));
return gcd(b, a % b);
return ((a * b) / gcd(a, b));
const int64_t gcd = __common_powers_of_two(factor, divisor);
return (__stime64_scale32_ceil(x, factor / gcd, divisor / gcd));
const int64_t gcd = __common_powers_of_two(factor, divisor);
return (__stime64_scale32_floor(x, factor / gcd, divisor / gcd));
const uint64_t gcd = __common_powers_of_two(factor, divisor);
return (__utime64_scale32_ceil(x, factor / gcd, divisor / gcd));
const uint64_t gcd = __common_powers_of_two(factor, divisor);
return (__utime64_scale32_floor(x, factor / gcd, divisor / gcd));
uint64_t gcd = vclient_gcd_64(mul, div);
mul /= gcd;
div /= gcd;