package F1;

import androidx.datastore.preferences.protobuf.C1018g;
import com.google.crypto.tink.shaded.protobuf.C1260h;
import com.google.crypto.tink.shaded.protobuf.C1262j;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.security.GeneralSecurityException;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public abstract class L {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f1378a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Object f1379b;

    public L(int i6) {
        this.f1378a = i6;
    }

    public static int e(int i6) {
        return (-(i6 & 1)) ^ (i6 >>> 1);
    }

    public static long f(long j4) {
        return (-(j4 & 1)) ^ (j4 >>> 1);
    }

    public static C1262j i(byte[] bArr, int i6, int i7, boolean z6) {
        C1262j c1262j = new C1262j(bArr, i6, i7, z6);
        try {
            c1262j.q(i7);
            return c1262j;
        } catch (com.google.crypto.tink.shaded.protobuf.C e6) {
            throw new IllegalArgumentException(e6);
        }
    }

    public abstract long A();

    public abstract int B();

    public abstract long C();

    public abstract int D();

    public abstract long E();

    public abstract String F();

    public abstract String G();

    public abstract int H();

    public abstract int I();

    public abstract long J();

    public abstract boolean K(int i6);

    public ByteBuffer b(byte[] bArr, int i6) {
        int[] iArrD = d(i6, N3.a.c(bArr));
        int[] iArr = (int[]) iArrD.clone();
        N3.a.b(iArr);
        for (int i7 = 0; i7 < iArrD.length; i7++) {
            iArrD[i7] = iArrD[i7] + iArr[i7];
        }
        ByteBuffer byteBufferOrder = ByteBuffer.allocate(64).order(ByteOrder.LITTLE_ENDIAN);
        byteBufferOrder.asIntBuffer().put(iArrD, 0, 16);
        return byteBufferOrder;
    }

    public abstract void c(int i6);

    public abstract int[] d(int i6, int[] iArr);

    public abstract int g();

    public abstract boolean h();

    public abstract int j();

    public abstract m0 m(m0 m0Var, List list);

    public abstract T.p n(V v3, T.p pVar);

    public abstract void o(int i6);

    public void p(byte[] bArr, ByteBuffer byteBuffer, ByteBuffer byteBuffer2) throws GeneralSecurityException {
        if (bArr.length != j()) {
            throw new GeneralSecurityException("The nonce length (in bytes) must be " + j());
        }
        int iRemaining = byteBuffer2.remaining();
        int i6 = iRemaining / 64;
        int i7 = i6 + 1;
        for (int i8 = 0; i8 < i7; i8++) {
            ByteBuffer byteBufferB = b(bArr, this.f1378a + i8);
            if (i8 == i6) {
                Y3.j.r(byteBuffer, byteBuffer2, byteBufferB, iRemaining % 64);
            } else {
                Y3.j.r(byteBuffer, byteBuffer2, byteBufferB, 64);
            }
        }
    }

    public abstract int q(int i6);

    public abstract boolean r();

    public abstract C1018g s();

    public abstract C1260h t();

    public abstract double u();

    public abstract int v();

    public abstract int w();

    public abstract long x();

    public abstract float y();

    public abstract int z();

    public void l() {
    }

    public void k(V v3) {
    }
}
