mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 15:02:52 +00:00
replace CalcuateIdentHash to identity.Hash to avoid duplication
This commit is contained in:
1 parent
40d5489429
commit
b3ee41bd91
5 files changed
+3
-11
No files matched your search
@@ -40,13 +40,6 @@ namespace data
|
||||
return *this;
|
||||
}
|
||||
|
||||
IdentHash CalculateIdentHash (const Identity& identity)
|
||||
{
|
||||
IdentHash hash;
|
||||
CryptoPP::SHA256().CalculateDigest((uint8_t *)hash, (uint8_t *)&identity, sizeof (Identity));
|
||||
return hash;
|
||||
}
|
||||
|
||||
Keys CreateRandomKeys ()
|
||||
{
|
||||
Keys keys;
|
||||
|
||||
Reference in new issue
Block a user