crypto: omap-sham - shrink the internal buffer size
authorTero Kristo <t-kristo@ti.com>
Mon, 19 Sep 2016 15:22:19 +0000 (18:22 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Sep 2016 10:32:53 +0000 (18:32 +0800)
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 <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c

index 8eefd79..d0b16e5 100644 (file)
 #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;