From 0e2895337aab790caedfa510ee0ed06ac878344c Mon Sep 17 00:00:00 2001 From: David Höppner <0xffea@gmail.com> Date: Sun, 14 Jul 2013 17:30:29 +0000 Subject: 3887 Enlarge data buffer in digest/mac to boost performance Reviewed by: Saso Kiselkov Reviewed by: Garrett D'Amore Approved by: Dan McDonald --- usr/src/cmd/cmd-crypto/digest/digest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/src/cmd/cmd-crypto/digest/digest.c b/usr/src/cmd/cmd-crypto/digest/digest.c index 6115876358..69ee58cb21 100644 --- a/usr/src/cmd/cmd-crypto/digest/digest.c +++ b/usr/src/cmd/cmd-crypto/digest/digest.c @@ -51,7 +51,11 @@ #include #include -#define BUFFERSIZE (4096) /* Buffer size for reading file */ +/* + * Buffer size for reading file. This is given a rather high value + * to get better performance when a hardware provider is present. + */ +#define BUFFERSIZE (1024 * 64) /* * RESULTLEN - large enough size in bytes to hold result for -- cgit v1.2.3