Lines Matching defs:algo
1116 private static PublicKey getPublicKey(String algo) throws Exception {
1117 return getPublicKey(algo, 512);
1120 private static PublicKey getPublicKey(String algo, int keysize)
1122 KeyFactory kf = KeyFactory.getInstance(algo);
1124 if (algo.equalsIgnoreCase("DSA")) {
1129 } else if (algo.equalsIgnoreCase("RSA")) {
1137 } else throw new RuntimeException("Unsupported key algorithm " + algo);
1141 private static PrivateKey getPrivateKey(String algo) throws Exception {
1142 return getPrivateKey(algo, 512);
1145 private static PrivateKey getPrivateKey(String algo, int keysize)
1147 KeyFactory kf = KeyFactory.getInstance(algo);
1149 if (algo.equalsIgnoreCase("DSA")) {
1153 } else if (algo.equalsIgnoreCase("RSA")) {
1161 } else throw new RuntimeException("Unsupported key algorithm " + algo);