OpenBSD CVS

CVS log for src/usr.bin/openssl/speed.c


[BACK] Up to [local] / src / usr.bin / openssl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Thu Jul 27 07:01:50 2023 UTC (9 months, 3 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.33: +2 -19 lines
Diff to previous 1.33 (colored)

Remove antiquated options output

This is uninteresting and rather meaningless except for the implementer.
No need to have several hundred lines of code backing half a dozen symbols
in the public API for this.

ok jsing

Revision 1.33 / (download) - annotate - [select for diffs], Sat May 20 12:03:02 2023 UTC (12 months ago) by tb
Branch: MAIN
Changes since 1.32: +27 -5 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 20 11:44:15 2023 UTC (12 months ago) by tb
Branch: MAIN
Changes since 1.31: +6 -8 lines
Diff to previous 1.31 (colored)

openssl speed: minor style nits

This drops a bunch of unnecessary parentheses, makes the strcmp()
checks consistent and moves some "}\n\telse" to "} else".

Makes an upcoming commit smaller

Revision 1.31 / (download) - annotate - [select for diffs], Sat May 20 05:42:57 2023 UTC (12 months ago) by tb
Branch: MAIN
Changes since 1.30: +5 -88 lines
Diff to previous 1.30 (colored)

openssl speed: remove binary curve remnants

This wasn't properly hidden under OPENSSL_NO_EC2M, and all it does now
is producing ugly errors and useless "statistics". While looking at this,
I found that much of speed "has been pilfered from [Eric A. Young's]
libdes speed.c program". Apparently this was an precursor and ingredient
of SSLeay. Unfortunately, it seems that this piece of the history is lost.

ok miod

PS: If anyone is bored, a rewrite from scratch of the speed 'app' would
be a welcome contribution and may be an instructive rainy day project.
The current code was written in about the most stupid way possible so as
to maximize fragility and unmaintainability.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Feb 23 14:55:54 2023 UTC (14 months, 3 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

openssl speed: avoid bad plural

Remedy a case of twitching eyes caused by seeing "Doing ... rsa's for 10s".
If this breaks someone's script, so be it.

ok jsing sthen

Revision 1.29 / (download) - annotate - [select for diffs], Fri Nov 11 17:07:39 2022 UTC (18 months, 1 week ago) by joshua
Branch: MAIN
Changes since 1.28: +4 -6 lines
Diff to previous 1.28 (colored)

Remove the legacy interactive mode from openssl(1).

This removes the legacy interactive mode from openssl(1) since it is
rarely used, complicates the code, and has also been removed from
OpenSSL in version 3.x.x.

ok tb@ jsing@

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 14 09:27:30 2022 UTC (2 years, 4 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.27: +31 -13 lines
Diff to previous 1.27 (colored)

Convert openssl(1) speed for opaque EVP_AEAD_CTX

ok inoguchi jsing

Revision 1.27 / (download) - annotate - [select for diffs], Sun Dec 26 15:34:26 2021 UTC (2 years, 4 months ago) by tb
Branch: MAIN
Changes since 1.26: +13 -4 lines
Diff to previous 1.26 (colored)

Check error returns for HMAC_* to appease coverity.

CID 345114

Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 26 15:31:24 2021 UTC (2 years, 4 months ago) by tb
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

One more leak similar to previous.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 26 15:28:37 2021 UTC (2 years, 4 months ago) by tb
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Plug leaks

CID 345111

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 12 20:35:40 2021 UTC (2 years, 5 months ago) by tb
Branch: MAIN
Changes since 1.23: +29 -20 lines
Diff to previous 1.23 (colored)

Make speed.c compile with opaque EVP_CIPHER, EVP_MD and HMAC_CTX.

ok inoguchi

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jul 13 18:36:56 2018 UTC (5 years, 10 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

openssl app timers: TM_START -> TM_RESET, TM_STOP -> TM_GET

Much more apt than the current operation names.

Names suggested by jca@ ages ago.

ok jca, jsing

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 7 05:47:55 2018 UTC (6 years, 3 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Indent labels with a single space so that diff prototypes are more useful.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 5 15:02:06 2017 UTC (6 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.20: +5 -2 lines
Diff to previous 1.20 (colored)

Seperate real and user timer interfaces

Use more descriptive names, and make it clearer that real and user
timers work on different static storage.  The end goal is to be able to
reuse those timer functions, instead of inlining other timer
implementations subject to clock jumps.

Discussed with Scott Cheloha

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 7 06:16:54 2017 UTC (6 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Fix cast-pasto's in comments

Revision 1.19 / (download) - annotate - [select for diffs], Mon Aug 22 04:33:07 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.18: +1 -4 lines
Diff to previous 1.18 (colored)

Sorry Andrew and Luke, I'm pretty sure we deleted your IRIX and VMS code.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 17 15:00:11 2015 UTC (8 years, 7 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

Exit if a pledge call fails in non-interactive mode.

ok semarie@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 10 22:28:51 2015 UTC (8 years, 7 months ago) by doug
Branch: MAIN
Changes since 1.16: +6 -1 lines
Diff to previous 1.16 (colored)

Initial support for pledges in openssl(1) commands.

openssl(1) has two mechanisms for operating: either a single execution
of one command (looking at argv[0] or argv[1]) or as an interactive
session than may execute any number of commands.

We already have a top level pledge that should cover all commands
and that's what interactive mode must continue using.  However, we can
tighten up the pledges when only executing one command.

This is an initial stab at support and may contain regressions.  Most
commands only need "stdio rpath wpath cpath".  The pledges could be
further restricted by evaluating the situation after parsing options.

deraadt@ and beck@ are roughly fine with this approach.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Sep 20 13:39:13 2015 UTC (8 years, 8 months ago) by miod
Branch: MAIN
Changes since 1.15: +34 -34 lines
Diff to previous 1.15 (colored)

Pack the algorithm numbers, to avoid printing a useless (null) 0 0 0 0
line in the summary.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 14 01:45:03 2015 UTC (8 years, 8 months ago) by doug
Branch: MAIN
Changes since 1.14: +31 -4 lines
Diff to previous 1.14 (colored)

Temporarily revive MD4 for MS CHAP support.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Sep 13 23:36:21 2015 UTC (8 years, 8 months ago) by doug
Branch: MAIN
Changes since 1.13: +4 -31 lines
Diff to previous 1.13 (colored)

Remove MD4 support from LibreSSL.

MD4 should have been removed a long time ago.  Also, RFC 6150 moved it to
historic in 2011.  Rides the major crank from removing SHA-0.

Discussed with many including beck@, millert@, djm@, sthen@
ok jsing@, input + ok bcook@

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 12 15:49:53 2015 UTC (8 years, 8 months ago) by bcook
Branch: MAIN
Changes since 1.12: +96 -17 lines
Diff to previous 1.12 (colored)

Add openssl(1) speed support for AEAD algorithms.

This adds aes-128-gcm aes-256-gcm chacha20-poly1305
from Adam Langley's original patch for OpenSSL

ok beck@ jsing@

Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 11 20:55:59 2015 UTC (8 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.11: +1 -34 lines
Diff to previous 1.11 (colored)

unifdef -DOPENSSL_NO_RC5

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 11 14:30:23 2015 UTC (8 years, 8 months ago) by bcook
Branch: MAIN
Changes since 1.10: +1 -22 lines
Diff to previous 1.10 (colored)

Remove engine command and parameters from openssl(1).

We do not have any builtin or dynamic engines, meaning openssl(1) has
no way to use the engine command or parameters at all.

ok jsing@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 11 09:38:30 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

remove stupid casts

Revision 1.9 / (download) - annotate - [select for diffs], Sat Aug 22 16:36:05 2015 UTC (8 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.8: +1 -4 lines
Diff to previous 1.8 (colored)

Remove all duplicate prototypes for *_main functions (these are already
provided by progs.h). Also, move the FUNCTION type (and flags) into
openssl.c since that is the only place of use. Lastly, remove pointless
'extern' from the prototypes and use char **argv instead of char *argv[]
(the former is used elsewhere).

ok deraadt@ doug@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jul 20 21:55:13 2015 UTC (8 years, 10 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.7: +23 -17 lines
Diff to previous 1.7 (colored)

Don't try to run ECDH if ecdh_checks fails in openssl(1) speed.

Coverity 72744 noticed that rsa_count was overwitten.  The underlying
issue is that this code is supposed to be in an else block.

ok bcook@

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 3 21:45:10 2015 UTC (8 years, 10 months ago) by miod
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Repair algorithm name array after 1.6.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 20 01:07:25 2015 UTC (8 years, 11 months ago) by doug
Branch: MAIN
Changes since 1.5: +3 -31 lines
Diff to previous 1.5 (colored)

Remove obsolete MDC-2DES from libcrypto.

ok deraadt@ jsing@ miod@

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 8 10:22:45 2015 UTC (9 years, 3 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.4: +2 -20 lines
Diff to previous 1.4 (colored)

Delete commented out code from openssl(1) apps.

From OpenSSL commits:

6f91b017bbb7140f816721141ac156d1b828a6b3
75d0ebef2aef7a2c77b27575b8da898e22f3ccd5
a2b18e657ea1a932d125154f4e13ab2258796d90

ok miod@, jsing@

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jan 3 03:03:39 2015 UTC (9 years, 4 months ago) by lteo
Branch: MAIN
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

Check the return values of several reallocarray() calls.  While here,
also check the return value of an adjacent malloc() call.

ok jsing@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 2 04:00:21 2015 UTC (9 years, 4 months ago) by lteo
Branch: MAIN
Changes since 1.2: +1 -5 lines
Diff to previous 1.2 (colored)

Remove ifdef statements for TIMES and USE_TOD; they don't do anything,
apart from introducing a bug where the -elapsed option is not listed in
the usage output when it should be.

feedback/ok bcook@ jsing@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 22 13:54:03 2014 UTC (9 years, 6 months ago) by jsing
Branch: MAIN
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored)

Use arc4random_buf() instead of RAND(_pseudo)?_bytes().

ok bcook@

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 26 17:47:25 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN

Move openssl(1) from /usr/sbin/openssl to /usr/bin/openssl, since it is not
a system/superuser binary. At the same time, move the source code from its
current lib/libssl/src/apps location to a more appropriate home under
usr.bin/openssl.

ok deraadt@ miod@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.