From ff2f210d6662c7231547f04d04b5a9c8fb2cf706 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 1 Jun 2024 03:59:07 +0300 Subject: Introducing the first test and library implementations for the _ak_fs in C --- src/include/akfs.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/include/akfs.h (limited to 'src/include') diff --git a/src/include/akfs.h b/src/include/akfs.h new file mode 100644 index 0000000..1a574af --- /dev/null +++ b/src/include/akfs.h @@ -0,0 +1,25 @@ +#ifndef AKFS +#define AKFS + +#include + +typedef struct { + long unsigned int sum[8]; +} sha512sum; + +//typedef char[64] sha512sum_as_string; + +char* ak_fs_return_hash_path(char*); + +char* ak_fs_return_hash_dir(char*); + +bool ak_fs_verify_input_is_hash(char*); + +int ak_fs_create_dir_for_hash(char*); + +sha512sum ak_fs_sha512sum_string_to_struct(char*); + +char* ak_fs_sha512sum_struct_to_string(sha512sum); + +#endif // AKFS + -- cgit v1.2.3