summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Höppner <0xffea@gmail.com>2013-07-14 17:30:29 +0000
committerDan McDonald <danmcd@nexenta.com>2013-07-16 10:37:02 -0400
commit0e2895337aab790caedfa510ee0ed06ac878344c (patch)
tree871cf981c16b5f8c3791db1d986844a6369598a2
parent01f9868a8d2cedd96c3aeefbd7233aa77f7b72ff (diff)
downloadillumos-joyent-0e2895337aab790caedfa510ee0ed06ac878344c.tar.gz
3887 Enlarge data buffer in digest/mac to boost performance
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Dan McDonald <danmcd@nexenta.com>
-rw-r--r--usr/src/cmd/cmd-crypto/digest/digest.c6
1 files changed, 5 insertions, 1 deletions
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 <cryptoutil.h>
#include <kmfapi.h>
-#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