diff options
author | Mattias Andrée <maandree@kth.se> | 2023-07-06 15:51:36 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-07-06 15:51:36 +0200 |
commit | 54b1980cc5d13d8ae2f697ee4834bd6b692bf7ab (patch) | |
tree | 3b894eca9af7850f805c383cf185ae05d68a12f4 /common.h | |
parent | bump year (diff) | |
download | blakesum-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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[]); |