diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-06 15:20:33 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-06 15:20:33 +0200 |
commit | 61eecfc1fe903b0a9eaaf4453b1dbcc26b6fbb62 (patch) | |
tree | 68aa690bd7b5161ae8faa593fce5eb420255ce9b /src | |
parent | add libkeccak_degeneralise_spec.3 (diff) | |
download | libkeccak-61eecfc1fe903b0a9eaaf4453b1dbcc26b6fbb62.tar.gz libkeccak-61eecfc1fe903b0a9eaaf4453b1dbcc26b6fbb62.tar.bz2 libkeccak-61eecfc1fe903b0a9eaaf4453b1dbcc26b6fbb62.tar.xz |
m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libkeccak/files.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libkeccak/files.h b/src/libkeccak/files.h index 5a0b159..ebe0a81 100644 --- a/src/libkeccak/files.h +++ b/src/libkeccak/files.h @@ -33,7 +33,7 @@ * @param spec Specifications for the hashing algorithm * @param suffix The data suffix, see `libkeccak_digest` * @param hashsum Output array for the hashsum, have an allocation size of - * at least `(spec->output / 8) * sizeof(char)`, may be `NULL` + * at least `((spec->output + 7) / 8) * sizeof(char)`, may be `NULL` * @return Zero on success, -1 on error */ LIBKECCAK_GCC_ONLY(__attribute__((nonnull(2, 3)))) @@ -50,7 +50,7 @@ int libkeccak_generalised_sum_fd(int fd, libkeccak_state_t* restrict state, * @param state The hashing state, should not be initialised (memory leak otherwise) * @param spec Specifications for the hashing algorithm * @param hashsum Output array for the hashsum, have an allocation size of - * at least `(spec->output / 8) * sizeof(char)`, may be `NULL` + * at least `((spec->output + 7) / 8) * sizeof(char)`, may be `NULL` * @return Zero on success, -1 on error */ LIBKECCAK_GCC_ONLY(__attribute__((nonnull(2, 3), artificial, gnu_inline))) @@ -70,7 +70,7 @@ int libkeccak_keccaksum_fd(int fd, libkeccak_state_t* restrict state, * @param state The hashing state, should not be initialised (memory leak otherwise) * @param output The output size parameter for the hashing algorithm * @param hashsum Output array for the hashsum, have an allocation size of - * at least `(output / 8) * sizeof(char)`, may be `NULL` + * at least `((output + 7) / 8) * sizeof(char)`, may be `NULL` * @return Zero on success, -1 on error */ LIBKECCAK_GCC_ONLY(__attribute__((nonnull(2), artificial, gnu_inline))) @@ -93,7 +93,7 @@ int libkeccak_sha3sum_fd(int fd, libkeccak_state_t* restrict state, * @param semicapacity The semicapacity parameter for the hashing algorithm * @param output The output size parameter for the hashing algorithm * @param hashsum Output array for the hashsum, have an allocation size of - * at least `(output / 8) * sizeof(char)`, may be `NULL` + * at least `((output + 7) / 8) * sizeof(char)`, may be `NULL` * @return Zero on success, -1 on error */ LIBKECCAK_GCC_ONLY(__attribute__((nonnull(2), artificial, gnu_inline))) @@ -116,7 +116,7 @@ int libkeccak_rawshakesum_fd(int fd, libkeccak_state_t* restrict state, * @param semicapacity The semicapacity parameter for the hashing algorithm * @param output The output size parameter for the hashing algorithm * @param hashsum Output array for the hashsum, have an allocation size of - * at least `(output / 8) * sizeof(char)`, may be `NULL` + * at least `((output + 7) / 8) * sizeof(char)`, may be `NULL` * @return Zero on success, -1 on error */ LIBKECCAK_GCC_ONLY(__attribute__((nonnull(2), artificial, gnu_inline))) |