@Override
    protected byte[] engineGetEncoded() throws IOException {
        long cbbRef = 0;
        try {
            cbbRef = NativeCrypto.asn1_write_init();
            NativeCrypto.asn1_write_octetstring(cbbRef, this.iv);
            return NativeCrypto.asn1_write_finish(cbbRef);
        } catch (IOException e) {
            NativeCrypto.asn1_write_cleanup(cbbRef);
            throw e;
        } finally {
            NativeCrypto.asn1_write_free(cbbRef);
        }
    }
An implementation of {@link java.security.AlgorithmParameters} that contains only an IV.  The
supported encoding formats are ASN.1 (primary) and RAW.
common/src/main/java/org/conscrypt/IvParameters.java