mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-14 05:52:49 +00:00
some more tweaks
This commit is contained in:
parent
12b9fd5e40
commit
7281403328
2 changed files with 3 additions and 2 deletions
4
main.c
4
main.c
|
@ -817,7 +817,7 @@ end:
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void addu64toscalar32(u8 *dst,u64 v)
|
||||
static void addsztoscalar32(u8 *dst,size_t v)
|
||||
{
|
||||
int i;
|
||||
u32 c = 0;
|
||||
|
@ -897,7 +897,7 @@ initseed:
|
|||
}
|
||||
// found!
|
||||
// update secret key with counter
|
||||
addu64toscalar32(sk,counter);
|
||||
addsztoscalar32(sk,counter);
|
||||
// sanity check
|
||||
if (((sk[0] & 248) == sk[0]) && (((sk[31] & 63) | 64) == sk[31])) {
|
||||
/* These operations should be a no-op. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue