aboutsummaryrefslogtreecommitdiff
path: root/include/sha1.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sha1.h')
-rw-r--r--include/sha1.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sha1.h b/include/sha1.h
index eb86fbb..6c94a47 100644
--- a/include/sha1.h
+++ b/include/sha1.h
@@ -108,6 +108,13 @@ extern void sha1_process_block (const void *buffer, size_t len,
extern void sha1_process_bytes (const void *buffer, size_t len,
struct sha1_ctx *ctx);
+typedef void (*sha1_process_bytes_fn) (const void *, size_t,
+ struct sha1_ctx *);
+
+/* Return sha1_process_bytes or some hardware optimized version thereof
+ depending on current CPU. */
+extern sha1_process_bytes_fn sha1_choose_process_bytes (void);
+
/* Process the remaining bytes in the buffer and put result from CTX
in first 20 bytes following RESBUF. The result is always in little
endian byte order, so that a byte-wise output yields to the wanted