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-stb34
Commits
d7fd1afc
Commit
d7fd1afc
authored
2 months ago
by
Белов Никита Сергеевич
Browse files
Options
Download
Patches
Plain Diff
updated ak_belt_hash.c
parent
4b8cf54e
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 @
d7fd1afc
...
@@ -16,13 +16,14 @@ static const ak_uint8 belt_start_hash[32] =
...
@@ -16,13 +16,14 @@ static const ak_uint8 belt_start_hash[32] =
};
};
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/*
!
\brief Операция сжатия блока длиной 512 бит
/* \brief Операция сжатия блока длиной 512 бит
\note Мы предполагаем, что данные содержат 64 байта, а размер выходного массива 48 байт
\note Мы предполагаем, что данные содержат 64 байта, а размер выходного массива 48 байт
\note В данной реализации data не должна пересекаться с result, потому что
\note В данной реализации data не должна пересекаться с result, потому что
@param result Указатель на выходной массив данных.
@param result Указатель на выходной массив данных.
@param bkey Указатель на входной массив данных.
@param bkey Указатель на входной массив данных.
@param bkey Контекст секретного ключа алгоритма блочного шифрования.
@param bkey Контекст секретного ключа алгоритма блочного шифрования.
*/
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
static
inline
void
ak_belt_compress
(
ak_uint64
*
result
,
ak_uint64
*
data
,
ak_bckey
bkey
)
static
inline
void
ak_belt_compress
(
ak_uint64
*
result
,
ak_uint64
*
data
,
ak_bckey
bkey
)
...
@@ -205,4 +206,4 @@ int ak_hash_create_belt(ak_hash hctx)
...
@@ -205,4 +206,4 @@ int ak_hash_create_belt(ak_hash hctx)
return
ak_error_message
(
error
,
__func__
,
"incorrect initialization of internal mac context"
);
return
ak_error_message
(
error
,
__func__
,
"incorrect initialization of internal mac context"
);
return
ak_hash_context_belt_clean
(
&
hctx
->
data
.
sctx
);
return
ak_hash_context_belt_clean
(
&
hctx
->
data
.
sctx
);
}
}
\ No newline at end of file
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