From: Tero Kristo Date: Mon, 19 Sep 2016 15:22:19 +0000 (+0300) Subject: crypto: omap-sham - shrink the internal buffer size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=182e283f3e550d70ba5b7e6be66ea74726646166;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: omap-sham - shrink the internal buffer size The current internal buffer size is way too large for crypto core, so shrink it to be smaller. This makes the buffer to fit into the space reserved for the export/import buffers also. Signed-off-by: Tero Kristo Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 8eefd793cc82..d0b16e5e4ee5 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -135,7 +135,7 @@ #define OMAP_ALIGN_MASK (sizeof(u32)-1) #define OMAP_ALIGNED __attribute__((aligned(sizeof(u32)))) -#define BUFLEN PAGE_SIZE +#define BUFLEN SHA512_BLOCK_SIZE #define OMAP_SHA_DMA_THRESHOLD 256 struct omap_sham_dev;