mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
hashx: trim trailing whitespace
Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
This commit is contained in:
parent
ae86d98815
commit
0c11411f35
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user