Lines Matching refs:Y
211 BIGNUM *A,*B,*X,*Y,*M,*D,*T,*R=NULL; in BN_mod_inverse() local
229 Y = BN_CTX_get(ctx); in BN_mod_inverse()
240 BN_zero(Y); in BN_mod_inverse()
300 if (BN_is_odd(Y)) in BN_mod_inverse()
302 if (!BN_uadd(Y, Y, n)) goto err; in BN_mod_inverse()
305 if (!BN_rshift1(Y, Y)) goto err; in BN_mod_inverse()
327 if (!BN_uadd(X, X, Y)) goto err; in BN_mod_inverse()
335 if (!BN_uadd(Y, Y, X)) goto err; in BN_mod_inverse()
431 if (!BN_add(tmp,X,Y)) goto err; in BN_mod_inverse()
452 if (!BN_add(tmp,tmp,Y)) goto err; in BN_mod_inverse()
455 M=Y; /* keep the BIGNUM object, the value does not matter */ in BN_mod_inverse()
456 Y=X; in BN_mod_inverse()
472 if (!BN_sub(Y,n,Y)) goto err; in BN_mod_inverse()
480 if (!Y->neg && BN_ucmp(Y,n) < 0) in BN_mod_inverse()
482 if (!BN_copy(R,Y)) goto err; in BN_mod_inverse()
486 if (!BN_nnmod(R,Y,n,ctx)) goto err; in BN_mod_inverse()
509 BIGNUM *A,*B,*X,*Y,*M,*D,*T,*R=NULL; in BN_mod_inverse_no_branch() local
524 Y = BN_CTX_get(ctx); in BN_mod_inverse_no_branch()
535 BN_zero(Y); in BN_mod_inverse_no_branch()
609 if (!BN_add(tmp,tmp,Y)) goto err; in BN_mod_inverse_no_branch()
611 M=Y; /* keep the BIGNUM object, the value does not matter */ in BN_mod_inverse_no_branch()
612 Y=X; in BN_mod_inverse_no_branch()
627 if (!BN_sub(Y,n,Y)) goto err; in BN_mod_inverse_no_branch()
634 if (!Y->neg && BN_ucmp(Y,n) < 0) in BN_mod_inverse_no_branch()
636 if (!BN_copy(R,Y)) goto err; in BN_mod_inverse_no_branch()
640 if (!BN_nnmod(R,Y,n,ctx)) goto err; in BN_mod_inverse_no_branch()