4 {- join("\n", @autowarntext) -}
10 openssl-speed - test library performance
25 {- $OpenSSL::safe::opt_r_synopsis -}
28 =for openssl ifdef cmac multi async_jobs engine
32 This command is used to test the performance of cryptographic algorithms.
33 To see the list of supported algorithms, use C<openssl list -digest-commands>
34 or C<openssl list -cipher-commands> command. The global CSPRNG is denoted by
35 the B<rand> algorithm name.
43 Print out a usage message.
45 =item B<-engine> I<id>
47 Specifying an engine (by its unique I<id> string) will cause this command
48 to attempt to obtain a functional reference to the specified engine,
49 thus initialising it if needed. The engine will then be set as the default
50 for all available algorithms.
54 When calculating operations- or bytes-per-second, use wall-clock time
55 instead of CPU user time as divisor. It can be useful when testing speed
60 Use the specified cipher or message digest algorithm via the EVP interface.
61 If I<algo> is an AEAD cipher, then you can pass B<-aead> to benchmark a
62 TLS-like sequence. And if I<algo> is a multi-buffer capable cipher, e.g.
63 aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation.
65 =item B<-hmac> I<digest>
67 Time the HMAC algorithm using the specified message digest.
69 =item B<-cmac> I<cipher>
71 Time the CMAC algorithm using the specified cipher e.g.
72 C<openssl speed -cmac aes128>.
76 Time the decryption instead of encryption. Affects only the EVP testing.
78 =item B<-primes> I<num>
80 Generate a I<num>-prime RSA key and use it to run the benchmarks. This option
81 is only effective if RSA algorithm is specified to test.
83 =item B<-seconds> I<num>
85 Run benchmarks for I<num> seconds.
87 =item B<-bytes> I<num>
89 Run benchmarks on I<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
91 {- $OpenSSL::safe::opt_r_item -}
93 =item I<algorithm> ...
95 If any I<algorithm> is given, then those algorithms are tested, otherwise a
96 pre-compiled grand selection is tested.
102 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
104 Licensed under the Apache License 2.0 (the "License"). You may not use
105 this file except in compliance with the License. You can obtain a copy
106 in the file LICENSE in the source distribution or at
107 L<https://www.openssl.org/source/license.html>.