mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
I2P -> .NET
This commit is contained in:
parent
f176f1909b
commit
fdb0ce6703
272 changed files with 5702 additions and 8931 deletions
|
@ -52,15 +52,15 @@ const uint8_t example2_hash_256[32] =
|
|||
int main ()
|
||||
{
|
||||
uint8_t digest[64];
|
||||
i2p::crypto::GOSTR3411_2012_512 (example1, 63, digest);
|
||||
dotnet::crypto::GOSTR3411_2012_512 (example1, 63, digest);
|
||||
assert(memcmp (digest, example1_hash_512, 64) == 0);
|
||||
|
||||
i2p::crypto::GOSTR3411_2012_256 (example1, 63, digest);
|
||||
dotnet::crypto::GOSTR3411_2012_256 (example1, 63, digest);
|
||||
assert(memcmp (digest, example1_hash_256, 32) == 0);
|
||||
|
||||
i2p::crypto::GOSTR3411_2012_512 (example2, 72, digest);
|
||||
dotnet::crypto::GOSTR3411_2012_512 (example2, 72, digest);
|
||||
assert(memcmp (digest, example2_hash_512, 64) == 0);
|
||||
|
||||
i2p::crypto::GOSTR3411_2012_256 (example2, 72, digest);
|
||||
dotnet::crypto::GOSTR3411_2012_256 (example2, 72, digest);
|
||||
assert(memcmp (digest, example2_hash_256, 32) == 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue