aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/include/zinc/poly1305.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-08-28 23:50:35 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-03 23:52:11 -0600
commit4a0e319af86c0d38304535293f6fc32fe436ef1d (patch)
tree6fca1e89becf3ff1afdcec7b6bc725e256af5811 /src/crypto/include/zinc/poly1305.h
parentuapi: reformat (diff)
downloadwireguard-monolithic-historical-4a0e319af86c0d38304535293f6fc32fe436ef1d.tar.xz
wireguard-monolithic-historical-4a0e319af86c0d38304535293f6fc32fe436ef1d.zip
crypto: import zinc
Diffstat (limited to '')
-rw-r--r--src/crypto/include/zinc/poly1305.h (renamed from src/crypto/poly1305.h)17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/crypto/poly1305.h b/src/crypto/include/zinc/poly1305.h
index f8467bc..5c9220f 100644
--- a/src/crypto/poly1305.h
+++ b/src/crypto/include/zinc/poly1305.h
@@ -3,10 +3,10 @@
* Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
-#ifndef _WG_POLY1305_H
-#define _WG_POLY1305_H
+#ifndef _ZINC_POLY1305_H
+#define _ZINC_POLY1305_H
-#include "simd.h"
+#include <linux/simd.h>
#include <linux/types.h>
enum poly1305_lengths {
@@ -24,12 +24,15 @@ struct poly1305_ctx {
void poly1305_fpu_init(void);
-void poly1305_init(struct poly1305_ctx *ctx, const u8 key[POLY1305_KEY_SIZE], simd_context_t simd_context);
-void poly1305_update(struct poly1305_ctx *ctx, const u8 *inp, const size_t len, simd_context_t simd_context);
-void poly1305_finish(struct poly1305_ctx *ctx, u8 mac[POLY1305_MAC_SIZE], simd_context_t simd_context);
+void poly1305_init(struct poly1305_ctx *ctx, const u8 key[POLY1305_KEY_SIZE],
+ simd_context_t simd_context);
+void poly1305_update(struct poly1305_ctx *ctx, const u8 *inp, const size_t len,
+ simd_context_t simd_context);
+void poly1305_finish(struct poly1305_ctx *ctx, u8 mac[POLY1305_MAC_SIZE],
+ simd_context_t simd_context);
#ifdef DEBUG
bool poly1305_selftest(void);
#endif
-#endif /* _WG_POLY1305_H */
+#endif /* _ZINC_POLY1305_H */