hashx: trim trailing whitespace

Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
This commit is contained in:
Micah Elizabeth Scott 2023-03-15 14:55:17 -07:00
parent ae86d98815
commit 0c11411f35
5 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ set(HASHX_VERSION_STR "${HASHX_VERSION}.${HASHX_VERSION_MINOR}.${HASHX_VERSION_P
project(hashx) project(hashx)
set(hashx_sources set(hashx_sources
src/blake2.c src/blake2.c
src/compiler.c src/compiler.c
src/compiler_a64.c src/compiler_a64.c
src/compiler_x86.c src/compiler_x86.c

View File

@ -99,7 +99,7 @@ extern "C" {
* *
* @param type is the type of instance to be created. * @param type is the type of instance to be created.
* *
* @return pointer to a new HashX instance. Returns NULL on memory allocation * @return pointer to a new HashX instance. Returns NULL on memory allocation
* failure and HASHX_NOTSUPP if the requested type is not supported. * failure and HASHX_NOTSUPP if the requested type is not supported.
*/ */
HASHX_API hashx_ctx* hashx_alloc(hashx_type type); HASHX_API hashx_ctx* hashx_alloc(hashx_type type);
@ -111,7 +111,7 @@ HASHX_API hashx_ctx* hashx_alloc(hashx_type type);
* @param seed is a pointer to the seed value. * @param seed is a pointer to the seed value.
* @param size is the size of the seed. * @param size is the size of the seed.
* *
* @return 1 on success, 0 on failure. * @return 1 on success, 0 on failure.
*/ */
HASHX_API int hashx_make(hashx_ctx* ctx, const void* seed, size_t size); HASHX_API int hashx_make(hashx_ctx* ctx, const void* seed, size_t size);

View File

@ -430,7 +430,7 @@ int hashx_blake2b_final(blake2b_state* S, void* out, size_t outlen) {
} }
/* 4-round version of Blake2b */ /* 4-round version of Blake2b */
void hashx_blake2b_4r(const blake2b_param* params, const void* in, void hashx_blake2b_4r(const blake2b_param* params, const void* in,
size_t inlen, void* out) { size_t inlen, void* out) {
blake2b_state state; blake2b_state state;

View File

@ -22,7 +22,7 @@
#define HASHX_INPUT_ARGS input, size #define HASHX_INPUT_ARGS input, size
#endif #endif
static int initialize_program(hashx_ctx* ctx, hashx_program* program, static int initialize_program(hashx_ctx* ctx, hashx_program* program,
siphash_state keys[2]) { siphash_state keys[2]) {
if (!hashx_program_generate(&keys[0], program)) { if (!hashx_program_generate(&keys[0], program)) {

View File

@ -215,7 +215,7 @@ int main() {
RUN_TEST(test_hash_block1); RUN_TEST(test_hash_block1);
RUN_TEST(test_compiler_block1); RUN_TEST(test_compiler_block1);
RUN_TEST(test_free); RUN_TEST(test_free);
printf("\nAll tests were successful\n"); printf("\nAll tests were successful\n");
return 0; return 0;
} }