package org.bouncycastle.crypto.constraints;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class BitsOfSecurityConstraint extends org.bouncycastle.crypto.constraints.ServicesConstraint {
    private final int c;

    @Override // org.bouncycastle.crypto.CryptoServicesConstraints
    public void a(org.bouncycastle.crypto.CryptoServiceProperties cryptoServiceProperties) {
        if (!b(cryptoServiceProperties.getServiceName()) && cryptoServiceProperties.bitsOfSecurity() < this.c) {
            throw new org.bouncycastle.crypto.CryptoServiceConstraintsException("service does not provide " + this.c + " bits of security only " + cryptoServiceProperties.bitsOfSecurity());
        }
    }
}
