summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/opencrypto/xform_poly1305.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/opencrypto/xform_poly1305.h')
-rw-r--r--freebsd/sys/opencrypto/xform_poly1305.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/freebsd/sys/opencrypto/xform_poly1305.h b/freebsd/sys/opencrypto/xform_poly1305.h
new file mode 100644
index 00000000..7364ecde
--- /dev/null
+++ b/freebsd/sys/opencrypto/xform_poly1305.h
@@ -0,0 +1,16 @@
+/* This file is in the public domain. */
+/* $FreeBSD$ */
+#pragma once
+
+#include <sys/types.h>
+
+struct poly1305_xform_ctx;
+
+void Poly1305_Init(struct poly1305_xform_ctx *);
+
+void Poly1305_Setkey(struct poly1305_xform_ctx *,
+ const uint8_t [__min_size(32)], size_t);
+
+int Poly1305_Update(struct poly1305_xform_ctx *, const void *, size_t);
+
+void Poly1305_Final(uint8_t [__min_size(16)], struct poly1305_xform_ctx *);