mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed Elligator tests
This commit is contained in:
parent
6142e93252
commit
0d2d7e5e71
3 changed files with 14 additions and 10 deletions
|
@ -69,9 +69,9 @@ int main ()
|
|||
uint8_t buf[32];
|
||||
i2p::crypto::Elligator2 el;
|
||||
// encoding tests
|
||||
el.Encode (key, buf);
|
||||
el.Encode (key, buf, false, false);
|
||||
assert(memcmp (buf, encoded_key, 32) == 0);
|
||||
el.Encode (key, buf, true); // with highY
|
||||
el.Encode (key, buf, true, false); // with highY
|
||||
assert(memcmp (buf, encoded_key_high_y, 32) == 0);
|
||||
// decoding tests
|
||||
el.Decode (encoded1, buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue