summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/openssl.1
diff options
context:
space:
mode:
authortb <>2023-05-20 12:03:02 +0000
committertb <>2023-05-20 12:03:02 +0000
commita875e04ed3014912ab09376e2dfebe7eb86419d5 (patch)
tree11b37b64c3af5d399f11a74b5a3f525d94ceff15 /src/usr.bin/openssl/openssl.1
parentb8db5bf4eefc4e9aa767b9762b52e773c1fdaccd (diff)
downloadopenbsd-a875e04ed3014912ab09376e2dfebe7eb86419d5.tar.gz
openbsd-a875e04ed3014912ab09376e2dfebe7eb86419d5.tar.bz2
openbsd-a875e04ed3014912ab09376e2dfebe7eb86419d5.zip
openssl speed: add an '-unaligned n' option
All hashes and ciphers covered by speed should be able to handle unaligned input and output. The buffers used in openssl speed are well aligned since they are large, so will never exercise the more problematic unaligned case. I wished something like this was available on various occasions. It would have been useful to point more easily at OpenSSL's broken T4 assembly. Yesterday there were two independent reasons for wanting it, so I sat down and did it. It's trivial: make the allocations a bit larger and use buffers starting at an offset inside these allocations. Despite the trivality, I managed to have a stupid bug. Thanks miod. discussed with jsing ok miod
Diffstat (limited to 'src/usr.bin/openssl/openssl.1')
-rw-r--r--src/usr.bin/openssl/openssl.112
1 files changed, 10 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index 4c9d15b9d1..f01f71bc0c 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.144 2023/05/05 18:01:27 tb Exp $ 1.\" $OpenBSD: openssl.1,v 1.145 2023/05/20 12:03:02 tb Exp $
2.\" ==================================================================== 2.\" ====================================================================
3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4.\" 4.\"
@@ -110,7 +110,7 @@
110.\" copied and put under another distribution licence 110.\" copied and put under another distribution licence
111.\" [including the GNU Public Licence.] 111.\" [including the GNU Public Licence.]
112.\" 112.\"
113.Dd $Mdocdate: May 5 2023 $ 113.Dd $Mdocdate: May 20 2023 $
114.Dt OPENSSL 1 114.Dt OPENSSL 1
115.Os 115.Os
116.Sh NAME 116.Sh NAME
@@ -5392,6 +5392,7 @@ An error occurred writing certificates.
5392.Op Fl evp Ar algorithm 5392.Op Fl evp Ar algorithm
5393.Op Fl mr 5393.Op Fl mr
5394.Op Fl multi Ar number 5394.Op Fl multi Ar number
5395.Op Fl unaligned Ar number
5395.Ek 5396.Ek
5396.El 5397.El
5397.Pp 5398.Pp
@@ -5418,6 +5419,13 @@ Produce machine readable output.
5418Run 5419Run
5419.Ar number 5420.Ar number
5420benchmarks in parallel. 5421benchmarks in parallel.
5422.It Fl unaligned Ar number
5423Use allocated buffers with an offset of
5424.Ar number
5425bytes from the alignment provided by
5426.Xr malloc 3 .
5427.Ar number
5428should be between 0 and 16.
5421.El 5429.El
5422.Tg spkac 5430.Tg spkac
5423.Sh SPKAC 5431.Sh SPKAC