mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Database lookups from ECIES destinations
This commit is contained in:
parent
024c29b180
commit
09fdb068d2
5 changed files with 34 additions and 9 deletions
|
@ -460,6 +460,14 @@ namespace garlic
|
|||
}
|
||||
}
|
||||
|
||||
void GarlicDestination::AddECIESx25519Key (const uint8_t * key, const uint8_t * tag)
|
||||
{
|
||||
uint64_t t;
|
||||
memcpy (&t, tag, 8);
|
||||
auto tagset = std::make_shared<DatabaseLookupTagSet>(this, key);
|
||||
m_ECIESx25519Tags.emplace (t, ECIESX25519AEADRatchetIndexTagset{0, tagset});
|
||||
}
|
||||
|
||||
bool GarlicDestination::SubmitSessionKey (const uint8_t * key, const uint8_t * tag)
|
||||
{
|
||||
AddSessionKey (key, tag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue