crypto/openssl: add result field to mod exp and inv