Skip to content

Commit 182e283

Browse files
Tero Kristoherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent a84d351 commit 182e283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/omap-sham.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
#define OMAP_ALIGN_MASK (sizeof(u32)-1)
136136
#define OMAP_ALIGNED __attribute__((aligned(sizeof(u32))))
137137

138-
#define BUFLEN PAGE_SIZE
138+
#define BUFLEN SHA512_BLOCK_SIZE
139139
#define OMAP_SHA_DMA_THRESHOLD 256
140140

141141
struct omap_sham_dev;

0 commit comments

Comments
 (0)