Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Common values for the Polyval hash algorithm
0004  *
0005  * Copyright 2021 Google LLC
0006  */
0007 
0008 #ifndef _CRYPTO_POLYVAL_H
0009 #define _CRYPTO_POLYVAL_H
0010 
0011 #include <linux/types.h>
0012 #include <linux/crypto.h>
0013 
0014 #define POLYVAL_BLOCK_SIZE  16
0015 #define POLYVAL_DIGEST_SIZE 16
0016 
0017 void polyval_mul_non4k(u8 *op1, const u8 *op2);
0018 
0019 void polyval_update_non4k(const u8 *key, const u8 *in,
0020               size_t nblocks, u8 *accumulator);
0021 
0022 #endif