diff options
author | David Höppner <0xffea@gmail.com> | 2013-07-14 17:30:29 +0000 |
---|---|---|
committer | Dan McDonald <danmcd@nexenta.com> | 2013-07-16 10:37:02 -0400 |
commit | 0e2895337aab790caedfa510ee0ed06ac878344c (patch) | |
tree | 871cf981c16b5f8c3791db1d986844a6369598a2 | |
parent | 01f9868a8d2cedd96c3aeefbd7233aa77f7b72ff (diff) | |
download | illumos-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.c | 6 |
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 |