Browse Source

RedDSA

pull/61/head
orignal 6 years ago
parent
commit
c1ecfcc73e
  1. 4
      common/key.hpp
  2. 2
      i2pd

4
common/key.hpp

@ -31,6 +31,8 @@ std::string SigTypeToName(uint16_t keytype) @@ -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) @@ -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;
}

2
i2pd

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit d40a029dae39a1c4185117b880b16b7d8e391985
Subproject commit ff44bcc489f8a881214a1dfe522231372a0a970b
Loading…
Cancel
Save