diff options
author | Mattias Andrée <maandree@kth.se> | 2019-02-10 20:21:19 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-02-10 20:21:19 +0100 |
commit | ed0296b9055713df0d910e4e7528ffe6fc539514 (patch) | |
tree | 8cbf8ecc9b6352257d6bc4946ff75cb8a4b484c0 /common.h | |
download | libsha1-ed0296b9055713df0d910e4e7528ffe6fc539514.tar.gz libsha1-ed0296b9055713df0d910e4e7528ffe6fc539514.tar.bz2 libsha1-ed0296b9055713df0d910e4e7528ffe6fc539514.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common.h b/common.h new file mode 100644 index 0000000..ad3be05 --- /dev/null +++ b/common.h @@ -0,0 +1,21 @@ +/* See LICENSE file for copyright and license details. */ +#include "libsha1.h" + +#include <sys/stat.h> +#include <alloca.h> +#include <errno.h> +#include <stddef.h> +#include <string.h> +#include <unistd.h> + + +/** + * Process a chunk using SHA-1 or SHA-0 + * + * @param state The hashing state + * @param chunk The data to process + */ +#if defined(__GNUC__) +__attribute__((__nonnull__, __nothrow__)) +#endif +void libsha1_process(struct libsha1_state *restrict, const unsigned char *restrict); |