// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.crypto.agreement;

import org.bouncycastle.crypto.params.X25519PrivateKeyParameters;
import org.bouncycastle.crypto.params.X448PrivateKeyParameters;
import org.bouncycastle.crypto.params.DHKeyParameters;
import org.bouncycastle.crypto.constraints.DefaultServiceProperties;
import org.bouncycastle.crypto.CryptoServicePurpose;
import org.bouncycastle.crypto.constraints.ConstraintUtils;
import org.bouncycastle.crypto.CryptoServiceProperties;
import org.bouncycastle.crypto.params.ECKeyParameters;

class Utils
{
    static CryptoServiceProperties getDefaultProperties(final String s, final ECKeyParameters ecKeyParameters) {
        return new DefaultServiceProperties(s, ConstraintUtils.bitsOfSecurityFor(ecKeyParameters.getParameters().getCurve()), ecKeyParameters, CryptoServicePurpose.AGREEMENT);
    }
    
    static CryptoServiceProperties getDefaultProperties(final String s, final DHKeyParameters dhKeyParameters) {
        return new DefaultServiceProperties(s, ConstraintUtils.bitsOfSecurityFor(dhKeyParameters.getParameters().getP()), dhKeyParameters, CryptoServicePurpose.AGREEMENT);
    }
    
    static CryptoServiceProperties getDefaultProperties(final String s, final X448PrivateKeyParameters x448PrivateKeyParameters) {
        return new DefaultServiceProperties(s, 224, x448PrivateKeyParameters, CryptoServicePurpose.AGREEMENT);
    }
    
    static CryptoServiceProperties getDefaultProperties(final String s, final X25519PrivateKeyParameters x25519PrivateKeyParameters) {
        return new DefaultServiceProperties(s, 128, x25519PrivateKeyParameters, CryptoServicePurpose.AGREEMENT);
    }
}
