originally this was necessary for calling openssl's `BN_mod_inverse`, but these lines can get removed now.