package org.bouncycastle.crypto.agreement;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
class Utils {
    static org.bouncycastle.crypto.CryptoServiceProperties a(java.lang.String str, org.bouncycastle.crypto.params.DHKeyParameters dHKeyParameters) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, org.bouncycastle.crypto.constraints.ConstraintUtils.a(dHKeyParameters.g().f()), dHKeyParameters, org.bouncycastle.crypto.CryptoServicePurpose.AGREEMENT);
    }

    static org.bouncycastle.crypto.CryptoServiceProperties b(java.lang.String str, org.bouncycastle.crypto.params.ECKeyParameters eCKeyParameters) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, org.bouncycastle.crypto.constraints.ConstraintUtils.b(eCKeyParameters.g().a()), eCKeyParameters, org.bouncycastle.crypto.CryptoServicePurpose.AGREEMENT);
    }

    static org.bouncycastle.crypto.CryptoServiceProperties c(java.lang.String str, org.bouncycastle.crypto.params.X25519PrivateKeyParameters x25519PrivateKeyParameters) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, 128, x25519PrivateKeyParameters, org.bouncycastle.crypto.CryptoServicePurpose.AGREEMENT);
    }

    static org.bouncycastle.crypto.CryptoServiceProperties d(java.lang.String str, org.bouncycastle.crypto.params.X448PrivateKeyParameters x448PrivateKeyParameters) {
        return new org.bouncycastle.crypto.constraints.DefaultServiceProperties(str, 224, x448PrivateKeyParameters, org.bouncycastle.crypto.CryptoServicePurpose.AGREEMENT);
    }
}
