@Override
    protected void engineInit(AlgorithmParameterSpec params, SecureRandom secureRandom)
            throws InvalidAlgorithmParameterException {
        if (params == null) {
            throw new InvalidAlgorithmParameterException("No params provided");
        } else {
            throw new InvalidAlgorithmParameterException(
                    "Unknown param type: " + params.getClass().getName());
        }
    }
An implementation of {@link javax.crypto.KeyGenerator} suitable for use with other Conscrypt
algorithms.
common/src/main/java/org/conscrypt/KeyGeneratorImpl.java