package org.bouncycastle.crypto;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class CipherKeyGenerator {
    protected java.security.SecureRandom a;
    protected int b;

    public byte[] a() {
        byte[] bArr = new byte[this.b];
        this.a.nextBytes(bArr);
        return bArr;
    }

    public void b(org.bouncycastle.crypto.KeyGenerationParameters keyGenerationParameters) {
        this.a = keyGenerationParameters.a();
        this.b = (keyGenerationParameters.b() + 7) / 8;
        org.bouncycastle.crypto.CryptoServicesRegistrar.a(new org.bouncycastle.crypto.constraints.DefaultServiceProperties("SymKeyGen", keyGenerationParameters.b()));
    }
}
