package p138.p329.p357.p358;

import java.util.HashMap;
import java.util.Map;
import p138.p139.p143.p144.C2803;
import p138.p329.p351.p352.InterfaceC6290;
import p138.p329.p357.InterfaceC6311;
import p463.p473.p474.InterfaceC7146;
import p463.p473.p474.p475.C7150;
import p463.p473.p474.p475.C7152;

/* JADX INFO: renamed from: ދ.ށ.އ.ނ.ނ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C6323 implements InterfaceC6311 {

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static Map<String, InterfaceC6290<InterfaceC7146>> f17661;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final InterfaceC7146 f17662;

    /* JADX INFO: renamed from: ދ.ށ.އ.ނ.ނ$֏, reason: contains not printable characters */
    public class C6324 implements InterfaceC6290<InterfaceC7146> {
        @Override // p138.p329.p351.p352.InterfaceC6290
        /* JADX INFO: renamed from: ֏ */
        public InterfaceC7146 mo9523() {
            return new C7152();
        }
    }

    /* JADX INFO: renamed from: ދ.ށ.އ.ނ.ނ$ؠ, reason: contains not printable characters */
    public class C6325 implements InterfaceC6290<InterfaceC7146> {
        @Override // p138.p329.p351.p352.InterfaceC6290
        /* JADX INFO: renamed from: ֏ */
        public InterfaceC7146 mo9523() {
            return new C7150();
        }
    }

    static {
        HashMap map = new HashMap();
        f17661 = map;
        map.put("SHA256", new C6324());
        f17661.put("MD4", new C6325());
    }

    public C6323(String str) {
        InterfaceC6290<InterfaceC7146> interfaceC6290 = f17661.get(str);
        if (interfaceC6290 == null) {
            throw new IllegalArgumentException(C2803.m4880("No MessageDigest ", str, " defined in BouncyCastle"));
        }
        this.f17662 = interfaceC6290.mo9523();
    }

    @Override // p138.p329.p357.InterfaceC6311
    /* JADX INFO: renamed from: ֏ */
    public void mo9549(byte[] bArr) {
        this.f17662.mo10499(bArr, 0, bArr.length);
    }

    @Override // p138.p329.p357.InterfaceC6311
    /* JADX INFO: renamed from: ֏ */
    public byte[] mo9550() {
        byte[] bArr = new byte[this.f17662.mo10501()];
        this.f17662.mo10496(bArr, 0);
        return bArr;
    }
}
