Patch "crypto: ghash-generic - move common definitions to a new header file" has been added to the 4.8-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
crypto: ghash-generic - move common definitions to a new header file
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
crypto-ghash-generic-move-common-definitions-to-a-new-header-file.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
a397ba829d7f8aff4c90af3704573a28ccd61a59Mon Sep 17 00:00:00 2001
From: Marcelo Cerri <[email protected]>
Date: Wed, 28 Sep 2016 13:42:09 -0300
Subject: crypto: ghash-generic - move common definitions to a new header file
From: Marcelo Cerri <[email protected]>
commit a397ba829d7f8aff4c90af3704573a28ccd61a59 upstream.
Move common values and types used by ghash-generic to a new header file so drivers can directly use ghash-generic as a fallback implementation.
--- crypto/ghash-generic.c | 13 +------------ include/crypto/ghash.h | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 12 deletions(-)
crypto/ghash-generic.c +1 -12
@@ -14,24 +14,13 @@#include <crypto/algapi.h> #include <crypto/gf128mul.h> +#include <crypto/ghash.h> #include <crypto/internal/hash.h> #include <linux/crypto.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> -#define GHASH_BLOCK_SIZE 16 -#define GHASH_DIGEST_SIZE 16 - -struct ghash_ctx { -struct gf128mul_4k *gf128; -}; - -struct ghash_desc_ctx { -u8 buffer[GHASH_BLOCK_SIZE ]; -u32 bytes; -}; -static int ghash_init (struct shash_desc *desc) {struct ghash_desc_ctx *dctx =shash_desc_ctx (desc);
include/crypto/ghash.h new file +23 -0
@@ -0,0 +1,23 @@ +/* +* Common values for GHASH algorithms +*/ + +#ifndef __CRYPTO_GHASH_H__ +#define __CRYPTO_GHASH_H__ + +#include <linux/types.h> +#include <crypto/gf128mul.h> + +#define GHASH_BLOCK_SIZE 16 +#define GHASH_DIGEST_SIZE 16 + +struct ghash_ctx { +struct gf128mul_4k *gf128; +}; + +struct ghash_desc_ctx { +u8 buffer[GHASH_BLOCK_SIZE ]; +u32 bytes; +}; + +#endif
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/crypto-vmx-fix-memory-corruption-caused-by-p8_ghash.patch queue-4.8/crypto-ghash-generic-move-common-definitions-to-a-new-header-file.patch