use of org.bouncycastle.crypto.params.RSAKeyGenerationParameters in project robovm by robovm.
the class KeyPairGeneratorSpi method initialize.
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException {
if (!(params instanceof RSAKeyGenParameterSpec)) {
throw new InvalidAlgorithmParameterException("parameter object not a RSAKeyGenParameterSpec");
}
RSAKeyGenParameterSpec rsaParams = (RSAKeyGenParameterSpec) params;
param = new RSAKeyGenerationParameters(rsaParams.getPublicExponent(), random, rsaParams.getKeysize(), defaultTests);
engine.init(param);
}
use of org.bouncycastle.crypto.params.RSAKeyGenerationParameters in project robovm by robovm.
the class KeyPairGeneratorSpi method initialize.
public void initialize(int strength, SecureRandom random) {
param = new RSAKeyGenerationParameters(defaultPublicExponent, random, strength, defaultTests);
engine.init(param);
}
Aggregations