mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 13:27:17 +01:00
RedDSA
This commit is contained in:
parent
0dabbf6798
commit
c1ecfcc73e
|
@ -31,6 +31,8 @@ std::string SigTypeToName(uint16_t keytype)
|
||||||
return "GOSTR3410-A-GOSTR3411-256";
|
return "GOSTR3410-A-GOSTR3411-256";
|
||||||
case i2p::data::SIGNING_KEY_TYPE_GOSTR3410_TC26_A_512_GOSTR3411_512:
|
case i2p::data::SIGNING_KEY_TYPE_GOSTR3410_TC26_A_512_GOSTR3411_512:
|
||||||
return "GOSTR3410-TC26-A-GOSTR3411-512";
|
return "GOSTR3410-TC26-A-GOSTR3411-512";
|
||||||
|
case i2p::data::SIGNING_KEY_TYPE_REDDSA_SHA512_ED25519:
|
||||||
|
return "RED25519-SHA512";
|
||||||
default:
|
default:
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "unknown: " << keytype;
|
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("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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
i2pd
2
i2pd
|
@ -1 +1 @@
|
||||||
Subproject commit d40a029dae39a1c4185117b880b16b7d8e391985
|
Subproject commit ff44bcc489f8a881214a1dfe522231372a0a970b
|
Loading…
Reference in a new issue