1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Common values for the Polyval hash algorith 3 * Common values for the Polyval hash algorithm 4 * 4 * 5 * Copyright 2021 Google LLC 5 * Copyright 2021 Google LLC 6 */ 6 */ 7 7 8 #ifndef _CRYPTO_POLYVAL_H 8 #ifndef _CRYPTO_POLYVAL_H 9 #define _CRYPTO_POLYVAL_H 9 #define _CRYPTO_POLYVAL_H 10 10 11 #include <linux/types.h> 11 #include <linux/types.h> 12 #include <linux/crypto.h> 12 #include <linux/crypto.h> 13 13 14 #define POLYVAL_BLOCK_SIZE 16 14 #define POLYVAL_BLOCK_SIZE 16 15 #define POLYVAL_DIGEST_SIZE 16 15 #define POLYVAL_DIGEST_SIZE 16 16 16 17 void polyval_mul_non4k(u8 *op1, const u8 *op2) 17 void polyval_mul_non4k(u8 *op1, const u8 *op2); 18 18 19 void polyval_update_non4k(const u8 *key, const 19 void polyval_update_non4k(const u8 *key, const u8 *in, 20 size_t nblocks, u8 * 20 size_t nblocks, u8 *accumulator); 21 21 22 #endif 22 #endif 23 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.