Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Common values for the GHASH hash function
0004  */
0005 
0006 #ifndef __CRYPTO_GHASH_H__
0007 #define __CRYPTO_GHASH_H__
0008 
0009 #include <linux/types.h>
0010 #include <crypto/gf128mul.h>
0011 
0012 #define GHASH_BLOCK_SIZE    16
0013 #define GHASH_DIGEST_SIZE   16
0014 
0015 struct ghash_ctx {
0016     struct gf128mul_4k *gf128;
0017 };
0018 
0019 struct ghash_desc_ctx {
0020     u8 buffer[GHASH_BLOCK_SIZE];
0021     u32 bytes;
0022 };
0023 
0024 #endif