2
0

openssl-speed.pod.in 3.4 KB

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