private function assertValidHashAlgorithm(KeyConfiguration $keyConfig)
    {
        if (!\in_array($keyConfig->getHashAlgorithm(), hash_algos(), true)) {
            throw new UnknownHashAlgorithmException($keyConfig->getHashAlgorithm());
        }
    }
private function assertValidHashAlgorithm(KeyConfiguration $keyConfig)
    {
        if (!\in_array($keyConfig->getHashAlgorithm(), hash_algos(), true)) {
            throw new UnknownHashAlgorithmException($keyConfig->getHashAlgorithm());
        }
    }
private function assertValidHashAlgorithm ( KeyConfiguration $ keyConfig ) { if ( ! \ in_array ( $ keyConfig -> getHashAlgorithm ( ) , hash_algos ( ) , true ) ) { throw new UnknownHashAlgorithmException ( $ keyConfig -> getHashAlgorithm ( ) ) ; } }
Assert that hash algorithm is valid.

@param KeyConfiguration $keyConfig

@throws UnknownHashAlgorithmException
Assert that hash algorithm is valid .