org.telegram.mtproto.secure.pq.PQSolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegramapi Show documentation
Show all versions of telegramapi Show documentation
Java library to create Telegram Clients
package org.telegram.mtproto.secure.pq;
import java.math.BigInteger;
/**
* Created by Ruben Bermudez on 12.02.14.
*/
public class PQSolver {
private static PQImplementation currentImplementation = new PQLopatin();
private PQSolver() {
}
public static void setCurrentImplementation(PQImplementation implementation) {
currentImplementation = implementation;
}
public static BigInteger solvePq(BigInteger src) {
return new BigInteger("" + currentImplementation.findDivider(src.longValue()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy