package org.bouncycastle.crypto.signers;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
class Utils {
    static org.bouncycastle.crypto.CryptoServiceProperties a(java.lang.String str, int i, org.bouncycastle.crypto.CipherParameters cipherParameters, boolean z) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, i, cipherParameters, e(z));
    }

    static org.bouncycastle.crypto.CryptoServiceProperties b(java.lang.String str, org.bouncycastle.crypto.params.DSAKeyParameters dSAKeyParameters, boolean z) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, org.bouncycastle.crypto.constraints.ConstraintUtils.a(dSAKeyParameters.g().b()), dSAKeyParameters, e(z));
    }

    static org.bouncycastle.crypto.CryptoServiceProperties c(java.lang.String str, org.bouncycastle.crypto.params.ECKeyParameters eCKeyParameters, boolean z) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, org.bouncycastle.crypto.constraints.ConstraintUtils.b(eCKeyParameters.g().a()), eCKeyParameters, e(z));
    }

    static org.bouncycastle.crypto.CryptoServiceProperties d(java.lang.String str, org.bouncycastle.crypto.params.GOST3410KeyParameters gOST3410KeyParameters, boolean z) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, org.bouncycastle.crypto.constraints.ConstraintUtils.a(gOST3410KeyParameters.g().b()), gOST3410KeyParameters, e(z));
    }

    static org.bouncycastle.crypto.CryptoServicePurpose e(boolean z) {
        return z ? org.bouncycastle.crypto.CryptoServicePurpose.SIGNING : org.bouncycastle.crypto.CryptoServicePurpose.VERIFYING;
    }
}
