23 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * Common values for the Polyval hash algorithm4 *5 * Copyright 2021 Google LLC6 */7 8#ifndef _CRYPTO_POLYVAL_H9#define _CRYPTO_POLYVAL_H10 11#include <linux/types.h>12#include <linux/crypto.h>13 14#define POLYVAL_BLOCK_SIZE 1615#define POLYVAL_DIGEST_SIZE 1616 17void polyval_mul_non4k(u8 *op1, const u8 *op2);18 19void polyval_update_non4k(const u8 *key, const u8 *in,20 size_t nblocks, u8 *accumulator);21 22#endif23