aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-07-06 15:51:36 +0200
committerMattias Andrée <maandree@kth.se>2023-07-06 15:51:36 +0200
commit54b1980cc5d13d8ae2f697ee4834bd6b692bf7ab (patch)
tree3b894eca9af7850f805c383cf185ae05d68a12f4 /common.h
parentbump year (diff)
downloadblakesum-54b1980cc5d13d8ae2f697ee4834bd6b692bf7ab.tar.gz
blakesum-54b1980cc5d13d8ae2f697ee4834bd6b692bf7ab.tar.bz2
blakesum-54b1980cc5d13d8ae2f697ee4834bd6b692bf7ab.tar.xz
Add -P (pepper), -S (salt), and -K (key) to b2sum + m fix1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 9eb4980..d871b5b 100644
--- a/common.h
+++ b/common.h
@@ -20,6 +20,8 @@ int open_file(const char *path, int *closep);
int check_and_print(const char *path, size_t hashlen, int decode_hex, char newline);
int hash_and_print(const char *path, size_t hashlen, int decode_hex, char newline, int output_case);
void parse_salt(uint_least8_t *salt, const char *s, size_t required_length);
+void parse_pepper(uint_least8_t *pepper, const char *s, size_t required_length);
+size_t parse_key(uint_least8_t *key, const char *s, size_t maximum_length);
/* *sum.c */
int hash_fd(int fd, const char *fname, int decode_hex, unsigned char hash[]);