summaryrefslogtreecommitdiff
path: root/fticks_hashmac.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-09-29 11:21:30 +0200
committerLinus Nordberg <linus@nordu.net>2011-09-29 11:21:30 +0200
commit4806ddac9fc1dd243f9297c031689c23be6ee8b0 (patch)
tree07519d6c9657c34360ae67b8fb807bfcad561be3 /fticks_hashmac.h
parentd6bb6b8aa41e6a6f9c6779cef754ef4fd5a4cbd2 (diff)
Add binary radsecproxy-hash.
Split up fticks.c in order not to have to drag in too much of radsecproxy in order to just hash a MAC.
Diffstat (limited to 'fticks_hashmac.h')
-rw-r--r--fticks_hashmac.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fticks_hashmac.h b/fticks_hashmac.h
new file mode 100644
index 0000000..eb40a04
--- /dev/null
+++ b/fticks_hashmac.h
@@ -0,0 +1,7 @@
+#include <stdint.h>
+#include <stddef.h>
+
+int fticks_hashmac(const uint8_t *in,
+ const uint8_t *key,
+ size_t out_len,
+ uint8_t *out);