Back to project page asecrypto-goes-mobile-app.
The source code is released under:
GNU General Public License
If you think the Android project asecrypto-goes-mobile-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package at.fhj.gaar.asecrypto.mobile.crypto; //from w w w. j av a2s. com public class RSAHelper { public static AseInteger calculateN(AseInteger p, AseInteger q) { return p.multiply(q); } public static AseInteger calculatePhiOfN(AseInteger p, AseInteger q) { return p.subtract(AseInteger.ONE).multiply(q.subtract(AseInteger.ONE)); } }