Commit d7fd1afc authored by Белов Никита Сергеевич's avatar Белов Никита Сергеевич
Browse files

updated ak_belt_hash.c

parent 4b8cf54e
No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
...@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment