Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Тур Тимофей Владимирович
libakrypt-0.x belt-hash
Commits
99bb51a3
Commit
99bb51a3
authored
2 months ago
by
Тур Тимофей Владимирович
Browse files
Options
Download
Patches
Plain Diff
small fixes x2
parent
de7dbefc
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/ak_belt_hash.c
+15
-0
source/ak_belt_hash.c
with
15 additions
and
0 deletions
+15
-0
source/ak_belt_hash.c
+
15
−
0
View file @
99bb51a3
...
@@ -392,6 +392,20 @@ static int ak_hash_context_belt_hash_finalize( ak_pointer bctx,
...
@@ -392,6 +392,20 @@ static int ak_hash_context_belt_hash_finalize( ak_pointer bctx,
printf
(
"1: %i %li %i %i
\n
"
,
printf
(
"1: %i %li %i %i
\n
"
,
cx
->
ls
[
0
],
count_for_r
,
carry
[
0
],
carry
[
1
]);
cx
->
ls
[
0
],
count_for_r
,
carry
[
0
],
carry
[
1
]);
carry
[
0
]
=
(
cx
->
ls
[
0
]
+=
carry
[
0
])
<
carry
[
0
];
carry
[
0
]
=
(
cx
->
ls
[
1
]
+=
carry
[
0
])
<
carry
[
0
];
carry
[
0
]
=
(
cx
->
ls
[
2
]
+=
carry
[
0
])
<
carry
[
0
];
cx
->
ls
[
3
]
+=
carry
[
0
];
carry
[
1
]
=
(
cx
->
ls
[
1
]
+=
carry
[
1
])
<
carry
[
1
];
carry
[
1
]
=
(
cx
->
ls
[
2
]
+=
carry
[
1
])
<
carry
[
1
];
cx
->
ls
[
3
]
+=
carry
[
1
];
count_for_r
=
size
>>
61
;
carry
[
0
]
=
(
cx
->
ls
[
2
]
+=
carry
[
0
])
<
carry
[
0
];
cx
->
ls
[
3
]
+=
carry
[
0
];
/*
carry[0] = (cx->ls[0] += carry[0]) < carry[0];
carry[0] = (cx->ls[0] += carry[0]) < carry[0];
printf("2: %i\n", carry[0]);
printf("2: %i\n", carry[0]);
carry[0] = ( carry[1] += carry[0]) < carry[0];
carry[0] = ( carry[1] += carry[0]) < carry[0];
...
@@ -412,6 +426,7 @@ static int ak_hash_context_belt_hash_finalize( ak_pointer bctx,
...
@@ -412,6 +426,7 @@ static int ak_hash_context_belt_hash_finalize( ak_pointer bctx,
cx->ls[3] += carry[0];
cx->ls[3] += carry[0];
printf("7: %i %i %i %i\n",
printf("7: %i %i %i %i\n",
cx->ls[0], cx->ls[1], cx->ls[2], cx->ls[3]);
cx->ls[0], cx->ls[1], cx->ls[2], cx->ls[3]);
*/
/*
/*
carry = (bx->ls[0] += carry) < carry;
carry = (bx->ls[0] += carry) < carry;
carry = (bx->ls[1] += carry) < carry;
carry = (bx->ls[1] += carry) < carry;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets