openssl-speed.1ossl 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "OPENSSL-SPEED 1ossl"
  58. .TH OPENSSL-SPEED 1ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. openssl\-speed \- test library performance
  65. .SH SYNOPSIS
  66. .IX Header "SYNOPSIS"
  67. \&\fBopenssl speed\fR
  68. [\fB\-help\fR]
  69. [\fB\-config\fR \fIfilename\fR]
  70. [\fB\-elapsed\fR]
  71. [\fB\-evp\fR \fIalgo\fR]
  72. [\fB\-hmac\fR \fIalgo\fR]
  73. [\fB\-cmac\fR \fIalgo\fR]
  74. [\fB\-mb\fR]
  75. [\fB\-aead\fR]
  76. [\fB\-kem\-algorithms\fR]
  77. [\fB\-signature\-algorithms\fR]
  78. [\fB\-multi\fR \fInum\fR]
  79. [\fB\-async_jobs\fR \fInum\fR]
  80. [\fB\-misalign\fR \fInum\fR]
  81. [\fB\-decrypt\fR]
  82. [\fB\-primes\fR \fInum\fR]
  83. [\fB\-seconds\fR \fInum\fR]
  84. [\fB\-bytes\fR \fInum\fR]
  85. [\fB\-mr\fR]
  86. [\fB\-mlock\fR]
  87. [\fB\-testmode\fR]
  88. [\fB\-rand\fR \fIfiles\fR]
  89. [\fB\-writerand\fR \fIfile\fR]
  90. [\fB\-engine\fR \fIid\fR]
  91. [\fB\-provider\fR \fIname\fR]
  92. [\fB\-provider\-path\fR \fIpath\fR]
  93. [\fB\-propquery\fR \fIpropq\fR]
  94. [\fIalgorithm\fR ...]
  95. .SH DESCRIPTION
  96. .IX Header "DESCRIPTION"
  97. This command is used to test the performance of cryptographic algorithms.
  98. .SH OPTIONS
  99. .IX Header "OPTIONS"
  100. .IP \fB\-help\fR 4
  101. .IX Item "-help"
  102. Print out a usage message.
  103. .IP "\fB\-config\fR \fIfilename\fR" 4
  104. .IX Item "-config filename"
  105. Specifies the configuration file to use.
  106. Optional; for a description of the default value,
  107. see "COMMAND SUMMARY" in \fBopenssl\fR\|(1).
  108. .IP \fB\-elapsed\fR 4
  109. .IX Item "-elapsed"
  110. When calculating operations\- or bytes-per-second, use wall-clock time
  111. instead of CPU user time as divisor. It can be useful when testing speed
  112. of hardware engines.
  113. .IP "\fB\-evp\fR \fIalgo\fR" 4
  114. .IX Item "-evp algo"
  115. Use the specified cipher or message digest algorithm via the EVP interface.
  116. If \fIalgo\fR is an AEAD cipher, then you can pass \fB\-aead\fR to benchmark a
  117. TLS-like sequence. And if \fIalgo\fR is a multi-buffer capable cipher, e.g.
  118. aes\-128\-cbc\-hmac\-sha1, then \fB\-mb\fR will time multi-buffer operation.
  119. .Sp
  120. To see the algorithms supported with this option, use
  121. \&\f(CW\*(C`openssl list \-digest\-algorithms\*(C'\fR or \f(CW\*(C`openssl list \-cipher\-algorithms\*(C'\fR
  122. command.
  123. .IP "\fB\-multi\fR \fInum\fR" 4
  124. .IX Item "-multi num"
  125. Run multiple operations in parallel.
  126. .IP "\fB\-async_jobs\fR \fInum\fR" 4
  127. .IX Item "-async_jobs num"
  128. Enable async mode and start specified number of jobs.
  129. .IP "\fB\-misalign\fR \fInum\fR" 4
  130. .IX Item "-misalign num"
  131. Misalign the buffers by the specified number of bytes.
  132. .IP "\fB\-hmac\fR \fIdigest\fR" 4
  133. .IX Item "-hmac digest"
  134. Time the HMAC algorithm using the specified message digest.
  135. .IP "\fB\-cmac\fR \fIcipher\fR" 4
  136. .IX Item "-cmac cipher"
  137. Time the CMAC algorithm using the specified cipher e.g.
  138. \&\f(CW\*(C`openssl speed \-cmac aes128\*(C'\fR.
  139. .IP \fB\-decrypt\fR 4
  140. .IX Item "-decrypt"
  141. Time the decryption instead of encryption. Affects only the EVP testing.
  142. .IP \fB\-mb\fR 4
  143. .IX Item "-mb"
  144. Enable multi-block mode on EVP-named cipher.
  145. .IP \fB\-aead\fR 4
  146. .IX Item "-aead"
  147. Benchmark EVP-named AEAD cipher in TLS-like sequence.
  148. .IP \fB\-kem\-algorithms\fR 4
  149. .IX Item "-kem-algorithms"
  150. Benchmark KEM algorithms: key generation, encapsulation, decapsulation.
  151. .IP \fB\-signature\-algorithms\fR 4
  152. .IX Item "-signature-algorithms"
  153. Benchmark signature algorithms: key generation, signature, verification.
  154. .IP "\fB\-primes\fR \fInum\fR" 4
  155. .IX Item "-primes num"
  156. Generate a \fInum\fR\-prime RSA key and use it to run the benchmarks. This option
  157. is only effective if RSA algorithm is specified to test.
  158. .IP "\fB\-seconds\fR \fInum\fR" 4
  159. .IX Item "-seconds num"
  160. Run benchmarks for \fInum\fR seconds.
  161. .IP "\fB\-bytes\fR \fInum\fR" 4
  162. .IX Item "-bytes num"
  163. Run benchmarks on \fInum\fR\-byte buffers. Affects ciphers, digests and the CSPRNG.
  164. The limit on the size of the buffer is INT_MAX \- 64 bytes, which for a 32\-bit
  165. int would be 2147483583 bytes.
  166. .IP \fB\-mr\fR 4
  167. .IX Item "-mr"
  168. Produce the summary in a mechanical, machine-readable, format.
  169. .IP \fB\-mlock\fR 4
  170. .IX Item "-mlock"
  171. Lock memory into RAM for more deterministic measurements.
  172. .IP \fB\-testmode\fR 4
  173. .IX Item "-testmode"
  174. Runs the speed command in testmode. Runs only 1 iteration of each algorithm test
  175. regardless of any \fB\-seconds\fR value. In the event that any operation fails then
  176. the speed command will return with a failure result.
  177. .IP "\fB\-rand\fR \fIfiles\fR, \fB\-writerand\fR \fIfile\fR" 4
  178. .IX Item "-rand files, -writerand file"
  179. See "Random State Options" in \fBopenssl\fR\|(1) for details.
  180. .IP "\fB\-engine\fR \fIid\fR" 4
  181. .IX Item "-engine id"
  182. See "Engine Options" in \fBopenssl\fR\|(1).
  183. This option is deprecated.
  184. .IP "\fB\-provider\fR \fIname\fR" 4
  185. .IX Item "-provider name"
  186. .PD 0
  187. .IP "\fB\-provider\-path\fR \fIpath\fR" 4
  188. .IX Item "-provider-path path"
  189. .IP "\fB\-propquery\fR \fIpropq\fR" 4
  190. .IX Item "-propquery propq"
  191. .PD
  192. See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
  193. .IP "\fIalgorithm\fR ..." 4
  194. .IX Item "algorithm ..."
  195. If any \fIalgorithm\fR is given, then those algorithms are tested, otherwise a
  196. pre-compiled grand selection is tested.
  197. .SH BUGS
  198. .IX Header "BUGS"
  199. The \fIalgorithm\fR can be selected only from a pre-compiled subset of things
  200. that the \f(CW\*(C`openssl speed\*(C'\fR command knows about. To test any additional digest
  201. or cipher algorithm supported by OpenSSL use the \f(CW\*(C`\-evp\*(C'\fR option.
  202. .PP
  203. There is no way to test the speed of any additional public key algorithms
  204. supported by third party providers with the \f(CW\*(C`openssl speed\*(C'\fR command.
  205. .SH HISTORY
  206. .IX Header "HISTORY"
  207. The \fB\-engine\fR option was deprecated in OpenSSL 3.0.
  208. .PP
  209. DSA512 was removed in OpenSSL 3.2.
  210. .PP
  211. The \fB\-testmode\fR option was added in OpenSSL 3.4.
  212. .SH COPYRIGHT
  213. .IX Header "COPYRIGHT"
  214. Copyright 2000\-2024 The OpenSSL Project Authors. All Rights Reserved.
  215. .PP
  216. Licensed under the Apache License 2.0 (the "License"). You may not use
  217. this file except in compliance with the License. You can obtain a copy
  218. in the file LICENSE in the source distribution or at
  219. <https://www.openssl.org/source/license.html>.