List of usage examples for org.bouncycastle.jce.provider JCERSAPrivateKey getModulus
public BigInteger getModulus()
From source file:TorJava.Common.Encryption.java
License:Open Source License
public static RSAPrivateKeyStructure getRSAPrivateKeyStructureFromJCERSAPrivateKey(JCERSAPrivateKey key, JCERSAPublicKey pubkey) {//from ww w .j a v a 2 s . c o m return new RSAPrivateKeyStructure(key.getModulus(), pubkey.getPublicExponent(), key.getPrivateExponent(), null, null, null, null, null); }