mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 17:23:13 +00:00
Console: Remove RSA sigtypes in lookup form dropdown
This commit is contained in:
1 file changed
+4
-1
@@ -12,6 +12,7 @@ import java.util.TreeMap;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import net.i2p.crypto.EncType;
|
||||
import net.i2p.crypto.SigAlgo;
|
||||
import net.i2p.crypto.SigType;
|
||||
import net.i2p.data.DataHelper;
|
||||
import net.i2p.data.Hash;
|
||||
@@ -469,7 +470,9 @@ public class NetDbHelper extends FormHandler {
|
||||
"<tr><td>" + _t("Port") + " or Port Range:</td><td><input type=\"text\" name=\"port\"></td><td>e.g. 1024-1028</td></tr>\n" +
|
||||
"<tr><td>Signature Type:</td><td><select name=\"type\"><option value=\"\" selected=\"selected\"></option>");
|
||||
for (SigType type : EnumSet.allOf(SigType.class)) {
|
||||
if (type.name().endsWith("ph"))
|
||||
if (type == SigType.EdDSA_SHA512_Ed25519ph)
|
||||
continue;
|
||||
if (type.getBaseAlgorithm() == SigAlgo.RSA)
|
||||
continue;
|
||||
_out.write("<option value=\"" + type + "\">" + type + "</option>\n");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user