public static function isSymmetric($algorithm) : bool
    {
        if (!self::has($algorithm)) {
            throw new InvalidArgumentException("Algorithm \"$algorithm\" is not valid");
        }

        return in_array($algorithm, [Algorithms::SHA256, Algorithms::SHA384, Algorithms::SHA512]);
    }
public static function isSymmetric($algorithm) : bool
    {
        if (!self::has($algorithm)) {
            throw new InvalidArgumentException("Algorithm \"$algorithm\" is not valid");
        }

        return in_array($algorithm, [Algorithms::SHA256, Algorithms::SHA384, Algorithms::SHA512]);
    }
public static function isSymmetric ( $ algorithm ) : bool { if ( ! self :: has ( $ algorithm ) ) { throw new InvalidArgumentException ( "Algorithm \"$algorithm\" is not valid" ) ; } return in_array ( $ algorithm , [ Algorithms :: SHA256 , Algorithms :: SHA384 , Algorithms :: SHA512 ] ) ; }
Checks if an algorithm is symmetric

@param mixed $algorithm The algorithm to check
@return bool True if the algorithm is symmetric, otherwise false
@throws InvalidArgumentException Thrown if the algorithm is not valid
Checks if an algorithm is symmetric