@Override
    protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass)
            throws InvalidParameterSpecException {
        if ((aClass != null) && aClass.getName().equals("javax.crypto.spec.GCMParameterSpec")) {
            return aClass.cast(Platform.toGCMParameterSpec(tLen, iv));
        } else {
            throw new InvalidParameterSpecException("Unsupported class: " + aClass);
        }
    }
Returns a non-cloned version of the IV.
common/src/main/java/org/conscrypt/GCMParameters.java