001 package org.bouncycastle.crypto;
002
003 import cpw.mods.fml.common.Side;
004 import cpw.mods.fml.common.asm.SideOnly;
005 import java.security.SecureRandom;
006
007 @SideOnly(Side.CLIENT)
008 public class KeyGenerationParameters
009 {
010 private SecureRandom random;
011 private int strength;
012
013 public KeyGenerationParameters(SecureRandom par1SecureRandom, int par2)
014 {
015 this.random = par1SecureRandom;
016 this.strength = par2;
017 }
018
019 /**
020 * Return the random source associated with this generator.
021 */
022 public SecureRandom getRandom()
023 {
024 return this.random;
025 }
026
027 /**
028 * Return the bit strength for keys produced by this generator.
029 */
030 public int getStrength()
031 {
032 return this.strength;
033 }
034 }