<div dir="ltr">Hi,<div><br></div><div>I need to set custom accelerated functions for bn_mod_exp methods in openssl 1.1.1, while upgrading for openssl 1.0.2. Here's the code snippet () :</div><div>--</div><div>    static DH_METHOD Intoto_DH_Method;<br>    static RSA_METHOD Intoto_RSA_Method;<br>    static DSA_METHOD Intoto_DSA_Method;</div><div><br>    void updatePublicKeyMethods()<br>    {    <br>        Intoto_DH_Method = *(DH_get_default_method());<br>        Intoto_DH_Method.bn_mod_exp = Intoto_DH_mod_exp;<br>        DH_set_default_method(&Intoto_DH_Method);<br><br>        Intoto_RSA_Method = *(RSA_get_default_method());<br>        Intoto_RSA_Method.bn_mod_exp = Intoto_RSA_mod_exp;<br>        RSA_set_default_method(&Intoto_RSA_Method);<br><br>        Intoto_DSA_Method = *(DSA_get_default_method());<br>        Intoto_DSA_Method.bn_mod_exp = Intoto_DSA_mod_exp;<br>        DSA_set_default_method(&Intoto_DSA_Method);<br><br>        return;<br>    } <br></div><div>--</div><div>As RSA_METHOD,DSA_METHOD & DH_METHOD objects are Opaque now , Can anyone help me with what would be the replacement for above code ??</div><div><br></div><div>Thanks,</div><div>Prudvi </div></div>