openssl_get_md_methods

Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Gets available digest methods
<?php openssl_get_md_methods(bool $aliases = false): array
<?php                 throw new \RuntimeException('Failed loading the public key from '.$sigFile);

            }

            $algo = defined('OPENSSL_ALGO_SHA384') ? OPENSSL_ALGO_SHA384 : 'SHA384';

            if (!in_array('sha384', array_map('strtolower', openssl_get_md_methods()))) {

                throw new \RuntimeException('SHA384 is not supported by your openssl extension, could not verify the phar file integrity');

            }

            $signature = json_decode($signature, true);