package o; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.bouncycastle.asn1.ASN1Encoding; /* renamed from: o.gnv, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public abstract class AbstractC15346gnv implements InterfaceC15342gnr { @Override // o.InterfaceC15342gnr public abstract AbstractC15315gnE i(); public byte[] l() throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); new gnG(byteArrayOutputStream).d(this); return byteArrayOutputStream.toByteArray(); } public final byte[] c(String str) throws IOException { if (str.equals(ASN1Encoding.DER)) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); i().h().c(new C15383gow(byteArrayOutputStream)); return byteArrayOutputStream.toByteArray(); } if (str.equals(ASN1Encoding.DL)) { ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream(); i().f().c(new goK(byteArrayOutputStream2)); return byteArrayOutputStream2.toByteArray(); } return l(); } public int hashCode() { return i().hashCode(); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof InterfaceC15342gnr) { return i().equals(((InterfaceC15342gnr) obj).i()); } return false; } }