aboutsummaryrefslogtreecommitdiffstats
path: root/module/icp/illumos-crypto.c
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2019-09-05 12:51:59 -0400
committerBrian Behlendorf <[email protected]>2019-09-05 09:51:59 -0700
commit240c015ac6ea629bef1339ed2829148051c2a954 (patch)
treeb6e37d1ae238f8041c6a9e31417a40a036735a47 /module/icp/illumos-crypto.c
parent006e9a40882468be68f276c946bae812b74ac35c (diff)
Refactor checksum operations in tests
md5sum in particular but also sha256sum to a lesser extent is used in several areas of the test suite for computing checksums. The vast majority of invocations are followed by `| awk '{ print $1 }'`. Introduce functions to wrap up `md5sum $file | awk '{ print $1 }'` and likewise for sha256sum. These also serve as a convenient interface for alternative implementations on other platforms. Reviewed-by: Igor Kozhukhov <[email protected]> Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9280
Diffstat (limited to 'module/icp/illumos-crypto.c')
0 files changed, 0 insertions, 0 deletions