private function assertValidKeyConfiguration(KeyConfiguration $keyConfig)
    {
        if (empty($keyConfig->getHashAlgorithm()) || empty($keyConfig->getSalt()) || empty($keyConfig->getCost())) {
            throw new InvalidKeyConfigurationException();
        }

        $this->assertValidHashAlgorithm($keyConfig);
    }