summaryrefslogtreecommitdiff
path: root/futility/futility.h
diff options
context:
space:
mode:
Diffstat (limited to 'futility/futility.h')
-rw-r--r--futility/futility.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/futility/futility.h b/futility/futility.h
index 1f34713e..9d40ba7e 100644
--- a/futility/futility.h
+++ b/futility/futility.h
@@ -140,6 +140,12 @@ enum futil_file_err futil_map_file(int fd, int writeable,
enum futil_file_err futil_unmap_file(int fd, int writeable,
uint8_t *buf, uint32_t len);
+/*
+ * Parse input string as a hex representation of size len, exit with error if
+ * the string is not a valid hex string or is of a wrongs size.
+ */
+void parse_digest_or_die(uint8_t *buf, int len, const char *str);
+
/* The CPU architecture is occasionally important */
enum arch_t {
ARCH_UNSPECIFIED,