Refactor -engine documentation
[openssl.git] / doc / man1 / openssl-speed.pod.in
1 =pod
2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
3
4 =head1 NAME
5
6 openssl-speed - test library performance
7
8 =head1 SYNOPSIS
9
10 B<openssl speed>
11 [B<-help>]
12 [B<-elapsed>]
13 [B<-evp> I<algo>]
14 [B<-hmac> I<algo>]
15 [B<-cmac> I<algo>]
16 [B<-decrypt>]
17 [B<-primes> I<num>]
18 [B<-seconds> I<num>]
19 [B<-bytes> I<num>]
20 {- $OpenSSL::safe::opt_r_synopsis -}
21 {- $OpenSSL::safe::opt_engine_synopsis -}
22 [I<algorithm> ...]
23
24 =for openssl ifdef cmac multi async_jobs engine
25
26 =head1 DESCRIPTION
27
28 This command is used to test the performance of cryptographic algorithms.
29 To see the list of supported algorithms, use C<openssl list -digest-commands>
30 or C<openssl list -cipher-commands> command. The global CSPRNG is denoted by
31 the B<rand> algorithm name.
32
33 =head1 OPTIONS
34
35 =over 4
36
37 =item B<-help>
38
39 Print out a usage message.
40
41 =item B<-elapsed>
42
43 When calculating operations- or bytes-per-second, use wall-clock time
44 instead of CPU user time as divisor. It can be useful when testing speed
45 of hardware engines.
46
47 =item B<-evp> I<algo>
48
49 Use the specified cipher or message digest algorithm via the EVP interface.
50 If I<algo> is an AEAD cipher, then you can pass B<-aead> to benchmark a
51 TLS-like sequence. And if I<algo> is a multi-buffer capable cipher, e.g.
52 aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation.
53
54 =item B<-hmac> I<digest>
55
56 Time the HMAC algorithm using the specified message digest.
57
58 =item B<-cmac> I<cipher>
59
60 Time the CMAC algorithm using the specified cipher e.g.
61 C<openssl speed -cmac aes128>.
62
63 =item B<-decrypt>
64
65 Time the decryption instead of encryption. Affects only the EVP testing.
66
67 =item B<-primes> I<num>
68
69 Generate a I<num>-prime RSA key and use it to run the benchmarks. This option
70 is only effective if RSA algorithm is specified to test.
71
72 =item B<-seconds> I<num>
73
74 Run benchmarks for I<num> seconds.
75
76 =item B<-bytes> I<num>
77
78 Run benchmarks on I<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
79
80 {- $OpenSSL::safe::opt_r_item -}
81
82 {- $OpenSSL::safe::opt_engine_item -}
83
84 =item I<algorithm> ...
85
86 If any I<algorithm> is given, then those algorithms are tested, otherwise a
87 pre-compiled grand selection is tested.
88
89 =back
90
91 =head1 COPYRIGHT
92
93 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
94
95 Licensed under the Apache License 2.0 (the "License").  You may not use
96 this file except in compliance with the License.  You can obtain a copy
97 in the file LICENSE in the source distribution or at
98 L<https://www.openssl.org/source/license.html>.
99
100 =cut