Skip to content

Commit 64da143

Browse files
committed
Update README for evp_hash -o options
1 parent 2a34b39 commit 64da143

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,19 +200,22 @@ The test program supports options as follows:
200200

201201
Tool that computes hashes using the specified algorithm.
202202
Runs for 5 seconds and prints the average execution time per hash.
203-
Uses the EVP API by default, but this tool can also use the corresponding deprecated API's.
204203
Prints out the average time per hash computation.
204+
Three modes of operation:
205+
- deprecated: Use deprecated, legacy API's to do hash (e.g. SHA1_Init)
206+
- evp_isolated: Use EVP API and don't allow shared data between threads
207+
- evp_shared (default): Use EVP API and allow shared data between threads
205208

206209
```
207-
Usage: evp_hash [-h] [-x] [-t] [-u update-times] [-a algorithm] thread-count
210+
Usage: evp_hash [-h] [-t] [-o operation] [-u update-times] [-a algorithm] thread-count
208211
-h - print this help output
209-
-x - use deprecated API instead of EVP API
210212
-t - terse output
213+
-o operation - mode of operation. One of [deprecated, evp_isolated, evp_shared] (default: evp_shared)
211214
-u update-times - times to update digest. 1 for one-shot (default: 1)
212215
-a algorithm - One of: [SHA1, SHA224, SHA256, SHA384, SHA512] (default: SHA1)
213216
thread-count - number of threads
214217
```
215218

216219
```sh
217-
evp_hash -u 10 -a SHA512 -x 15
220+
evp_hash -u 10 -a SHA512 -o evp_isolated 15
218221
```

0 commit comments

Comments
 (0)