dsa_mod_inverse_fermat
if ((kinv = dsa_mod_inverse_fermat(k, dsa->params.q, ctx)) == NULL)
static BIGNUM *dsa_mod_inverse_fermat(const BIGNUM *k, const BIGNUM *q,