package org.bouncycastle.eac.operator.jcajce;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class JcaEACSignerBuilder {
    private static final java.util.Hashtable a;

    /* JADX INFO: renamed from: org.bouncycastle.eac.operator.jcajce.JcaEACSignerBuilder$1, reason: invalid class name */
    class AnonymousClass1 implements org.bouncycastle.eac.operator.EACSigner {
    }

    private static class SignatureOutputStream extends java.io.OutputStream {
        private java.security.Signature a;

        /* JADX INFO: Thrown type has an unknown type hierarchy: org.bouncycastle.operator.OperatorStreamException */
        @Override // java.io.OutputStream
        public void write(int i) throws org.bouncycastle.operator.OperatorStreamException {
            try {
                this.a.update((byte) i);
            } catch (java.security.SignatureException e) {
                throw new org.bouncycastle.operator.OperatorStreamException("exception in content signer: " + e.getMessage(), e);
            }
        }

        /* JADX INFO: Thrown type has an unknown type hierarchy: org.bouncycastle.operator.OperatorStreamException */
        @Override // java.io.OutputStream
        public void write(byte[] bArr) throws org.bouncycastle.operator.OperatorStreamException {
            try {
                this.a.update(bArr);
            } catch (java.security.SignatureException e) {
                throw new org.bouncycastle.operator.OperatorStreamException("exception in content signer: " + e.getMessage(), e);
            }
        }

        /* JADX INFO: Thrown type has an unknown type hierarchy: org.bouncycastle.operator.OperatorStreamException */
        @Override // java.io.OutputStream
        public void write(byte[] bArr, int i, int i2) throws org.bouncycastle.operator.OperatorStreamException {
            try {
                this.a.update(bArr, i, i2);
            } catch (java.security.SignatureException e) {
                throw new org.bouncycastle.operator.OperatorStreamException("exception in content signer: " + e.getMessage(), e);
            }
        }
    }

    static {
        java.util.Hashtable hashtable = new java.util.Hashtable();
        a = hashtable;
        hashtable.put("SHA1withRSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.l);
        hashtable.put("SHA256withRSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.m);
        hashtable.put("SHA1withRSAandMGF1", org.bouncycastle.asn1.eac.EACObjectIdentifiers.n);
        hashtable.put("SHA256withRSAandMGF1", org.bouncycastle.asn1.eac.EACObjectIdentifiers.o);
        hashtable.put("SHA512withRSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.p);
        hashtable.put("SHA512withRSAandMGF1", org.bouncycastle.asn1.eac.EACObjectIdentifiers.q);
        hashtable.put("SHA1withECDSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.s);
        hashtable.put("SHA224withECDSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.t);
        hashtable.put("SHA256withECDSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.u);
        hashtable.put("SHA384withECDSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.v);
        hashtable.put("SHA512withECDSA", org.bouncycastle.asn1.eac.EACObjectIdentifiers.w);
    }
}
