mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2024-12-06 19:26:18 +01:00
RedDSA
This commit is contained in:
@@ -31,6 +31,8 @@ std::string SigTypeToName(uint16_t keytype)
|
||||
return "GOSTR3410-A-GOSTR3411-256";
|
||||
case i2p::data::SIGNING_KEY_TYPE_GOSTR3410_TC26_A_512_GOSTR3411_512:
|
||||
return "GOSTR3410-TC26-A-GOSTR3411-512";
|
||||
case i2p::data::SIGNING_KEY_TYPE_REDDSA_SHA512_ED25519:
|
||||
return "RED25519-SHA512";
|
||||
default:
|
||||
std::stringstream ss;
|
||||
ss << "unknown: " << keytype;
|
||||
@@ -71,6 +73,8 @@ uint16_t NameToSigType(const std::string & keyname)
|
||||
|
||||
if(name.find("GOSTR3410-TC26-A-GOSTR3411-512") != npos) return i2p::data::SIGNING_KEY_TYPE_GOSTR3410_TC26_A_512_GOSTR3411_512;
|
||||
|
||||
if(name.find("RED25519") != npos) return i2p::data::SIGNING_KEY_TYPE_REDDSA_SHA512_ED25519;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
Submodule i2pd updated: d40a029dae...ff44bcc489
Reference in New Issue
Block a user