Lines Matching refs:kinv
122 BN_clear_free(dsa->kinv); in DSA_free()
474 BIGNUM *kinv = NULL, *r = NULL, *s = NULL; in DSA_do_sign() local
500 if (dsa->kinv == NULL || dsa->r == NULL) { in DSA_do_sign()
501 if (!DSA_sign_setup(dsa, ctx, &kinv, &r)) { in DSA_do_sign()
505 kinv = dsa->kinv; in DSA_do_sign()
506 dsa->kinv = NULL; in DSA_do_sign()
535 if (!BN_mod_mul(s, s, kinv, dsa->q, ctx)) { in DSA_do_sign()
564 BN_clear_free(kinv); in DSA_do_sign()
767 BIGNUM k, kq, *K, *kinv = NULL, *r = NULL; in DSA_sign_setup() local
834 kinv = BN_mod_inverse(NULL, &k, dsa->q, ctx); in DSA_sign_setup()
835 if (kinv == NULL) { in DSA_sign_setup()
840 *out_kinv = kinv; in DSA_sign_setup()
841 kinv = NULL; in DSA_sign_setup()