summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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