diff options
author | Keith M Wesolowski <wesolows@foobazco.org> | 2013-07-16 18:55:27 +0000 |
---|---|---|
committer | Keith M Wesolowski <wesolows@foobazco.org> | 2013-07-16 18:55:32 +0000 |
commit | 561cd70963fd3f154ab8378b9d1fafa576c8677f (patch) | |
tree | e21521ff8a877f0707b2f6736a04d0a5b012695f | |
parent | f292b0ed623323e3120528ca36c58631e41cf2a0 (diff) | |
parent | 0e2895337aab790caedfa510ee0ed06ac878344c (diff) | |
download | illumos-joyent-561cd70963fd3f154ab8378b9d1fafa576c8677f.tar.gz |
[illumos-gate merge]
commit 0e2895337aab790caedfa510ee0ed06ac878344c
3887 Enlarge data buffer in digest/mac to boost performance
-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 |