what-the-bank/sources/org/bouncycastle/asn1/DEROctetString.java

38 lines
1.3 KiB
Java

package org.bouncycastle.asn1;
import java.io.IOException;
/* loaded from: classes6.dex */
public class DEROctetString extends ASN1OctetString {
/* JADX INFO: Access modifiers changed from: package-private */
@Override // org.bouncycastle.asn1.ASN1Primitive
public boolean isConstructed() {
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // org.bouncycastle.asn1.ASN1Primitive
public int encodedLength() {
return StreamUtil.calculateBodyLength(this.string.length) + 1 + this.string.length;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // org.bouncycastle.asn1.ASN1OctetString, org.bouncycastle.asn1.ASN1Primitive
public void encode(ASN1OutputStream aSN1OutputStream) throws IOException {
aSN1OutputStream.writeEncoded(4, this.string);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void encode(DEROutputStream dEROutputStream, byte[] bArr) throws IOException {
dEROutputStream.writeEncoded(4, bArr);
}
public DEROctetString(byte[] bArr) {
super(bArr);
}
public DEROctetString(ASN1Encodable aSN1Encodable) throws IOException {
super(aSN1Encodable.toASN1Primitive().getEncoded(ASN1Encoding.DER));
}
}