mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-24 09:57:39 -03:00
apparently this check was always wrong lmao
This commit is contained in:
parent
f1c56e7480
commit
e12a3eb7c9
1 changed files with 2 additions and 2 deletions
4
worker.c
4
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_scalarmult_base(&point,&secret[SKPREFIX_SIZE]);
|
||||
ge_p3_tobytes(testpk,&point);
|
||||
if (!memcmp(testpk,pubonion,PUBLIC_LEN))
|
||||
if (memcmp(testpk,&pubonion[PKPREFIX_SIZE],PUBLIC_LEN) != 0)
|
||||
abort();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue