]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
hashx: trim trailing whitespace
authorMicah Elizabeth Scott <beth@torproject.org>
Wed, 15 Mar 2023 21:55:17 +0000 (14:55 -0700)
committerMicah Elizabeth Scott <beth@torproject.org>
Wed, 10 May 2023 14:38:28 +0000 (07:38 -0700)
Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
src/ext/equix/hashx/CMakeLists.txt
src/ext/equix/hashx/include/hashx.h
src/ext/equix/hashx/src/blake2.c
src/ext/equix/hashx/src/hashx.c
src/ext/equix/hashx/src/tests.c

index 5eb694d5dda2107f829407c16da3b005980f826e..742a5a8523e691f222b3cde36842dd67decf3d25 100644 (file)
@@ -11,7 +11,7 @@ set(HASHX_VERSION_STR "${HASHX_VERSION}.${HASHX_VERSION_MINOR}.${HASHX_VERSION_P
 project(hashx)
 
 set(hashx_sources
-src/blake2.c 
+src/blake2.c
 src/compiler.c
 src/compiler_a64.c
 src/compiler_x86.c
index c95fd295ef903c8038e937140b529bc6f310be6a..0d5521177a22074eb4729a2e478bb6e37644b62e 100644 (file)
@@ -99,7 +99,7 @@ extern "C" {
  *
  * @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.
 */
 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 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);
 
index 84b012c79ac7a357bf8c7b321813d0f79d1e5519..916dd9b6bab9fde70816e10d0278591500b318fd 100644 (file)
@@ -430,7 +430,7 @@ int hashx_blake2b_final(blake2b_state* S, void* out, size_t outlen) {
 }
 
 /* 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) {
 
        blake2b_state state;
index 5f17ccd5227569c262f72d0222e9410052e6821f..da84aa51f36951a3633d33f1223a6a9e175f12ac 100644 (file)
@@ -22,7 +22,7 @@
 #define HASHX_INPUT_ARGS input, size
 #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]) {
 
        if (!hashx_program_generate(&keys[0], program)) {
index 75bd9f0d52180aacb9e07b277876b31584a4255b..e1569844ac3f0f8f80a10827387e3b3441026495 100644 (file)
@@ -215,7 +215,7 @@ int main() {
        RUN_TEST(test_hash_block1);
        RUN_TEST(test_compiler_block1);
        RUN_TEST(test_free);
-       
+
        printf("\nAll tests were successful\n");
        return 0;
 }