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-stb34v2
Commits
164307c6
Commit
164307c6
authored
2 months ago
by
Белов Никита Сергеевич
Browse files
Options
Download
Patches
Plain Diff
Update ak_belt_hash.c
parent
c243f4d2
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/ak_belt_hash.c
+3
-2
source/ak_belt_hash.c
with
3 additions
and
2 deletions
+3
-2
source/ak_belt_hash.c
+
3
−
2
View file @
164307c6
...
...
@@ -138,7 +138,9 @@ static int ak_hash_context_belt_finalize(ak_pointer sctx,
ak_uint64
lastBlock
[
8
];
ak_uint64
final
[
6
];
if
((
size
&
31
)
||
!
size
)
ak_uint64
*
r
=
(
ak_uint64
*
)
cx
->
r
;
if
((
size
&
31
)
||
(
r
[
0
]
==
0
&&
r
[
1
]
==
0
))
{
memset
(
lastBlock
,
0
,
64
);
// Заполняем последний блок
memcpy
(
lastBlock
,
din
,
ssize
);
...
...
@@ -147,7 +149,6 @@ static int ak_hash_context_belt_finalize(ak_pointer sctx,
}
ak_uint64
*
r
=
(
ak_uint64
*
)
cx
->
r
;
r
[
0
]
+=
size
<<
3
;
if
(
r
[
0
]
==
0
)
r
[
1
]
+=
1
;
...
...
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