package ඓ.ῲ.K.ᕣ.ᨨ.ト;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import ඓ.ῲ.K.ᓣ.C0841;
import ඓ.ῲ.K.ᓣ.C0845;
import ඓ.ῲ.K.ᓣ.ᕣ.AbstractC0836;
import ඓ.ῲ.K.ᓣ.ᕣ.C0830;
import ඓ.ῲ.K.ᕣ.AbstractC1029;
import ῲ.ᨨ.㳳.C1841;
import ῲ.ᨨ.㿎.AbstractC1871;

/* renamed from: ඓ.ῲ.K.ᕣ.ᨨ.ト.ᕣ  reason: contains not printable characters */
/* compiled from: SafeKeyGenerator */
public class C0986 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final AbstractC1871<C0987> f4377 = C0830.m2423(10, new C0988(this));

    /* renamed from: K  reason: contains not printable characters */
    public final C0841<AbstractC1029, String> f4378 = new C0841<>(1000);

    /* renamed from: ඓ.ῲ.K.ᕣ.ᨨ.ト.ᕣ$ῲ  reason: contains not printable characters */
    /* compiled from: SafeKeyGenerator */
    public static final class C0987 implements C0830.AbstractC0835 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final AbstractC0836 f4379 = new AbstractC0836.C0837();

        /* renamed from: ῲ  reason: contains not printable characters */
        public final MessageDigest f4380;

        public C0987(MessageDigest messageDigest) {
            this.f4380 = messageDigest;
        }

        @Override // ඓ.ῲ.K.ᓣ.ᕣ.C0830.AbstractC0835
        /* renamed from: 㸾  reason: contains not printable characters */
        public AbstractC0836 m2795() {
            return this.f4379;
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.ᨨ.ト.ᕣ$K  reason: contains not printable characters */
    /* compiled from: SafeKeyGenerator */
    public class C0988 implements C0830.AbstractC0833<C0987> {
        public C0988(C0986 r1) {
        }

        /* Return type fixed from 'java.lang.Object' to match base method */
        @Override // ඓ.ῲ.K.ᓣ.ᕣ.C0830.AbstractC0833
        /* renamed from: K  reason: contains not printable characters */
        public C0987 m2796() {
            try {
                return new C0987(MessageDigest.getInstance("SHA-256"));
            } catch (NoSuchAlgorithmException e) {
                throw new RuntimeException(e);
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public String m2794(AbstractC1029 r4) {
        String r1;
        synchronized (this.f4378) {
            r1 = this.f4378.m2440(r4);
        }
        if (r1 == null) {
            C0987 r0 = this.f4377.m4835();
            C1841.m4783(r0, "Argument must not be null");
            C0987 r02 = r0;
            try {
                r4.m2845(r02.f4380);
                r1 = C0845.m2456(r02.f4380.digest());
            } finally {
                this.f4377.m4836(r02);
            }
        }
        synchronized (this.f4378) {
            this.f4378.m2439(r4, r1);
        }
        return r1;
    }
}
