Two functions are disabled and not working any more

Maybe it has something to do with the recent upgrade to PHP 8.1

Or the syntax has changed in a newer version, so your code is deprecated.

Can you tell us which version of PHP you have?
make a php file with this content
<?php phpinfo();

and have you tried AES 256 ( and does it work?)