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
6230b157
Commit
6230b157
authored
2 months ago
by
Тур Тимофей Владимирович
Browse files
Options
Download
Patches
Plain Diff
like for real
parent
99bb51a3
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/ak_belt_hash.c
+10
-10
source/ak_belt_hash.c
with
10 additions
and
10 deletions
+10
-10
source/ak_belt_hash.c
+
10
−
10
View file @
6230b157
...
...
@@ -390,20 +390,20 @@ static int ak_hash_context_belt_hash_finalize( ak_pointer bctx,
carry
=
(
ak_uint32
*
)
&
count_for_r
;
printf
(
"1: %i %li %i %i
\n
"
,
c
x
->
ls
[
0
],
count_for_r
,
carry
[
0
],
carry
[
1
]);
b
x
->
ls
[
0
],
count_for_r
,
carry
[
0
],
carry
[
1
]);
carry
[
0
]
=
(
c
x
->
ls
[
0
]
+=
carry
[
0
])
<
carry
[
0
];
carry
[
0
]
=
(
c
x
->
ls
[
1
]
+=
carry
[
0
])
<
carry
[
0
];
carry
[
0
]
=
(
c
x
->
ls
[
2
]
+=
carry
[
0
])
<
carry
[
0
];
c
x
->
ls
[
3
]
+=
carry
[
0
];
carry
[
0
]
=
(
b
x
->
ls
[
0
]
+=
carry
[
0
])
<
carry
[
0
];
carry
[
0
]
=
(
b
x
->
ls
[
1
]
+=
carry
[
0
])
<
carry
[
0
];
carry
[
0
]
=
(
b
x
->
ls
[
2
]
+=
carry
[
0
])
<
carry
[
0
];
b
x
->
ls
[
3
]
+=
carry
[
0
];
carry
[
1
]
=
(
c
x
->
ls
[
1
]
+=
carry
[
1
])
<
carry
[
1
];
carry
[
1
]
=
(
c
x
->
ls
[
2
]
+=
carry
[
1
])
<
carry
[
1
];
c
x
->
ls
[
3
]
+=
carry
[
1
];
carry
[
1
]
=
(
b
x
->
ls
[
1
]
+=
carry
[
1
])
<
carry
[
1
];
carry
[
1
]
=
(
b
x
->
ls
[
2
]
+=
carry
[
1
])
<
carry
[
1
];
b
x
->
ls
[
3
]
+=
carry
[
1
];
count_for_r
=
size
>>
61
;
carry
[
0
]
=
(
c
x
->
ls
[
2
]
+=
carry
[
0
])
<
carry
[
0
];
c
x
->
ls
[
3
]
+=
carry
[
0
];
carry
[
0
]
=
(
b
x
->
ls
[
2
]
+=
carry
[
0
])
<
carry
[
0
];
b
x
->
ls
[
3
]
+=
carry
[
0
];
/*
carry[0] = (cx->ls[0] += carry[0]) < carry[0];
...
...
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