Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.17-rc2 25 lines 715 B view raw
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Poly1305 authenticator algorithm, RFC7539 4 * 5 * Copyright (C) 2015 Martin Willi 6 * 7 * Based on public domain code by Andrew Moon and Daniel J. Bernstein. 8 */ 9 10#include <crypto/internal/poly1305.h> 11#include <linux/export.h> 12#include <linux/kernel.h> 13#include <linux/module.h> 14 15void poly1305_block_init_generic(struct poly1305_block_state *desc, 16 const u8 raw_key[POLY1305_BLOCK_SIZE]) 17{ 18 poly1305_core_init(&desc->h); 19 poly1305_core_setkey(&desc->core_r, raw_key); 20} 21EXPORT_SYMBOL_GPL(poly1305_block_init_generic); 22 23MODULE_LICENSE("GPL"); 24MODULE_AUTHOR("Martin Willi <martin@strongswan.org>"); 25MODULE_DESCRIPTION("Poly1305 algorithm (generic implementation)");