Lines Matching refs:D
26 BIGNUM *A, *B, *X, *Y, *M, *D, *T, *R = NULL; in bn_mod_inverse_no_branch() local
37 D = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
102 if (!BN_div(D, M, &local_A, B, ctx)) in bn_mod_inverse_no_branch()
142 if (!BN_mul(tmp, D, X, ctx)) in bn_mod_inverse_no_branch()
202 BIGNUM *A, *B, *X, *Y, *M, *D, *T, *R = NULL; in int_bn_mod_inverse() local
226 D = BN_CTX_get(ctx); in int_bn_mod_inverse()
369 if (!BN_one(D)) in int_bn_mod_inverse()
379 if (!BN_one(D)) in int_bn_mod_inverse()
387 if (!BN_add(D, T, B)) in int_bn_mod_inverse()
389 if (BN_ucmp(A, D) < 0) { in int_bn_mod_inverse()
391 if (!BN_set_word(D, 2)) in int_bn_mod_inverse()
398 if (!BN_set_word(D, 3)) in int_bn_mod_inverse()
408 if (!BN_div(D, M, A, B, ctx)) in int_bn_mod_inverse()
449 if (BN_is_one(D)) { in int_bn_mod_inverse()
453 if (BN_is_word(D, 2)) { in int_bn_mod_inverse()
456 } else if (BN_is_word(D, 4)) { in int_bn_mod_inverse()
459 } else if (D->top == 1) { in int_bn_mod_inverse()
462 if (!BN_mul_word(tmp, D->d[0])) in int_bn_mod_inverse()
465 if (!BN_mul(tmp, D, X, ctx)) in int_bn_mod_inverse()