package gk;

import com.google.crypto.tink.shaded.protobuf.p;
import fk.g;
import fk.h;
import fk.r;
import mk.m;
import mk.y;
import nk.u;
import nk.w;

/* loaded from: classes3.dex */
public final class f extends fk.h {

    /* loaded from: classes3.dex */
    class a extends h.b {
        a(Class cls) {
            super(cls);
        }

        @Override // fk.h.b
        /* renamed from: c, reason: merged with bridge method [inline-methods] */
        public fk.a a(mk.l lVar) {
            return new nk.c(lVar.I().C());
        }
    }

    /* loaded from: classes3.dex */
    class b extends h.a {
        b(Class cls) {
            super(cls);
        }

        @Override // fk.h.a
        /* renamed from: e, reason: merged with bridge method [inline-methods] */
        public mk.l a(m mVar) {
            return (mk.l) mk.l.K().t(com.google.crypto.tink.shaded.protobuf.h.l(u.c(mVar.H()))).u(f.this.l()).i();
        }

        @Override // fk.h.a
        /* renamed from: f, reason: merged with bridge method [inline-methods] */
        public m c(com.google.crypto.tink.shaded.protobuf.h hVar) {
            return m.J(hVar, p.b());
        }

        @Override // fk.h.a
        /* renamed from: g, reason: merged with bridge method [inline-methods] */
        public void d(m mVar) {
            w.a(mVar.H());
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public f() {
        super(mk.l.class, new a(fk.a.class));
    }

    public static final fk.g j() {
        return k(32, g.b.TINK);
    }

    private static fk.g k(int i10, g.b bVar) {
        return fk.g.a(new f().c(), ((m) m.I().t(i10).i()).c(), bVar);
    }

    public static void n(boolean z10) {
        r.q(new f(), z10);
    }

    @Override // fk.h
    public String c() {
        return "type.googleapis.com/google.crypto.tink.AesGcmKey";
    }

    @Override // fk.h
    public h.a e() {
        return new b(m.class);
    }

    @Override // fk.h
    public y.c f() {
        return y.c.SYMMETRIC;
    }

    public int l() {
        return 0;
    }

    @Override // fk.h
    /* renamed from: m, reason: merged with bridge method [inline-methods] */
    public mk.l g(com.google.crypto.tink.shaded.protobuf.h hVar) {
        return mk.l.L(hVar, p.b());
    }

    @Override // fk.h
    /* renamed from: o, reason: merged with bridge method [inline-methods] */
    public void i(mk.l lVar) {
        w.c(lVar.J(), l());
        w.a(lVar.I().size());
    }
}
