[MOD] Use specific SHA1/256 abstraction functions

This commit is contained in:
LDA 2024-08-19 16:40:30 +02:00
commit 4c158ea186
9 changed files with 80 additions and 22 deletions

View file

@ -99,6 +99,20 @@ extern char * ParseeGenerateGetopt(const Argument *list);
* Modifies: NOTHING */
extern void ParseeGenerateHelp(const Argument *list);
/** Generates a hexadecimal version of the SHA-256 digest of the
* original string.
* ----------------
* Returns: a hexadecimal string[HEAP]
* Modifies: NOTHING */
extern char * ParseeSHA256(char *string);
/** Generates a hexadecimal version of the SHA-1 digest of the
* original string.
* ----------------
* Returns: a hexadecimal string[HEAP]
* Modifies: NOTHING */
extern char * ParseeSHA1(char *string);
/* Initialises a Parsee config from scratch, and writes to it
* as JSON in the CWD. */
extern void ParseeConfigInit(void);