package p138.p145.p146.p151.p154.p156;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import p000.p001.p002.p003.p004.C0567;
import p037.p065.p077.InterfaceC1902;
import p138.p145.p146.p151.InterfaceC2844;
import p138.p145.p146.p174.C3237;
import p138.p145.p146.p174.C3240;
import p138.p145.p146.p174.p175.AbstractC3250;
import p138.p145.p146.p174.p175.C3242;

/* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ފ.ޚ.ވ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C2979 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C3237<InterfaceC2844, String> f9143 = new C3237<>(1000);

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final InterfaceC1902<C2981> f9144 = C3242.m5342(10, new C2980(this));

    /* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ފ.ޚ.ވ$֏, reason: contains not printable characters */
    public class C2980 implements C3242.InterfaceC3244<C2981> {
        public C2980(C2979 c2979) {
        }

        @Override // p138.p145.p146.p174.p175.C3242.InterfaceC3244
        /* JADX INFO: renamed from: ֏ */
        public C2981 mo5047() {
            try {
                return new C2981(MessageDigest.getInstance("SHA-256"));
            } catch (NoSuchAlgorithmException e) {
                throw new RuntimeException(e);
            }
        }
    }

    /* JADX INFO: renamed from: ދ.ؠ.֏.ތ.ފ.ޚ.ވ$ؠ, reason: contains not printable characters */
    public static final class C2981 implements C3242.InterfaceC3246 {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final MessageDigest f9145;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final AbstractC3250 f9146 = new AbstractC3250.C3252();

        public C2981(MessageDigest messageDigest) {
            this.f9145 = messageDigest;
        }

        @Override // p138.p145.p146.p174.p175.C3242.InterfaceC3246
        /* JADX INFO: renamed from: ބ */
        public AbstractC3250 mo5020() {
            return this.f9146;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public String m5128(InterfaceC2844 interfaceC2844) {
        String strM5322;
        synchronized (this.f9143) {
            strM5322 = this.f9143.m5322(interfaceC2844);
        }
        if (strM5322 == null) {
            C2981 c2981Mo3716 = this.f9144.mo3716();
            C0567.m1858(c2981Mo3716, "Argument must not be null");
            C2981 c2981 = c2981Mo3716;
            try {
                interfaceC2844.mo2526(c2981.f9145);
                strM5322 = C3240.m5332(c2981.f9145.digest());
            } finally {
                this.f9144.mo3715(c2981);
            }
        }
        synchronized (this.f9143) {
            this.f9143.m5324(interfaceC2844, strM5322);
        }
        return strM5322;
    }
}
