// SPDX-License-Identifier: GPL-2.0-or-later1/*2* Poly1305 authenticator algorithm, RFC75393*4* Copyright (C) 2015 Martin Willi5*6* Based on public domain code by Andrew Moon and Daniel J. Bernstein.7*/89#include <crypto/internal/poly1305.h>10#include <linux/export.h>11#include <linux/kernel.h>12#include <linux/module.h>1314void poly1305_block_init_generic(struct poly1305_block_state *desc,15const u8 raw_key[POLY1305_BLOCK_SIZE])16{17poly1305_core_init(&desc->h);18poly1305_core_setkey(&desc->core_r, raw_key);19}20EXPORT_SYMBOL_GPL(poly1305_block_init_generic);2122MODULE_LICENSE("GPL");23MODULE_AUTHOR("Martin Willi <[email protected]>");24MODULE_DESCRIPTION("Poly1305 algorithm (generic implementation)");252627