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

package org.bouncycastle.crypto.params;

import org.bouncycastle.crypto.CryptoServicesRegistrar;
import java.security.SecureRandom;
import org.bouncycastle.crypto.CipherParameters;

public class ParametersWithRandom implements CipherParameters
{
    private SecureRandom random;
    private CipherParameters parameters;
    
    public ParametersWithRandom(final CipherParameters parameters, final SecureRandom secureRandom) {
        this.random = CryptoServicesRegistrar.getSecureRandom(secureRandom);
        this.parameters = parameters;
    }
    
    public ParametersWithRandom(final CipherParameters cipherParameters) {
        this(cipherParameters, null);
    }
    
    public SecureRandom getRandom() {
        return this.random;
    }
    
    public CipherParameters getParameters() {
        return this.parameters;
    }
}
