Lines Matching defs:lcm
508 BIGNUM n, pm1, qm1, lcm, gcd, de, dmp1, dmq1, iqmp;
542 BN_init(&lcm);
551 /* lcm = lcm(p-1, q-1) */
554 !BN_mul(&lcm, &pm1, &qm1, ctx) ||
556 !BN_div(&lcm, NULL, &lcm, &gcd, ctx) ||
557 /* de = d*e mod lcm(p-1, q-1) */
558 !BN_mod_mul(&de, key->d, key->e, &lcm, ctx)) {
605 BN_free(&lcm);