mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
idk
This commit is contained in:
6
worker.c
6
worker.c
@@ -98,9 +98,9 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion)
|
||||
// Sanity check that the public key matches the private one.
|
||||
ge_p3 ALIGN(16) point;
|
||||
u8 testpk[PUBLIC_LEN];
|
||||
ge_scalarmult_base(&point, secret);
|
||||
ge_p3_tobytes(testpk, &point);
|
||||
if (!memcmp(testpk, pubonion, PUBLIC_LEN))
|
||||
ge_scalarmult_base(&point,secret);
|
||||
ge_p3_tobytes(testpk,&point);
|
||||
if (!memcmp(testpk,pubonion,PUBLIC_LEN))
|
||||
abort();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user