throws InvalidKeySpecException, NoSuchAlgorithmException {
KeyFactory kf = KeyFactory.getInstance(algo);
KeySpec kspec = null;
if (algo.equalsIgnoreCase("DSA")) {
if (number == 15) {
kspec = new DSAPublicKeySpec(new BigInteger(DSA_Y_15),
new BigInteger(DSA_P_15),
new BigInteger(DSA_Q_15),
new BigInteger(DSA_G_15));
} else if (number == 23) {
kspec = new DSAPublicKeySpec(new BigInteger(DSA_Y_23),
new BigInteger(DSA_P_23),
new BigInteger(DSA_Q_23),
new BigInteger(DSA_G_23));
}
} else if (algo.equalsIgnoreCase("RSA")) {