aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/poly1305.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/poly1305.c')
-rw-r--r--lib/crypto/poly1305.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/poly1305.c b/lib/crypto/poly1305.c
index 9d2d14df0fee..26d87fc3823e 100644
--- a/lib/crypto/poly1305.c
+++ b/lib/crypto/poly1305.c
@@ -12,7 +12,8 @@
#include <linux/module.h>
#include <asm/unaligned.h>
-void poly1305_init_generic(struct poly1305_desc_ctx *desc, const u8 *key)
+void poly1305_init_generic(struct poly1305_desc_ctx *desc,
+ const u8 key[POLY1305_KEY_SIZE])
{
poly1305_core_setkey(&desc->core_r, key);
desc->s[0] = get_unaligned_le32(key + 16);