project(hashx)
set(hashx_sources
-src/blake2.c
+src/blake2.c
src/compiler.c
src/compiler_a64.c
src/compiler_x86.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);
* @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);
}
/* 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;
#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)) {
RUN_TEST(test_hash_block1);
RUN_TEST(test_compiler_block1);
RUN_TEST(test_free);
-
+
printf("\nAll tests were successful\n");
return 0;
}