Page MenuHomeFreeBSD

Update cryptotest for modern algorithms.
ClosedPublic

Authored by gnn on Aug 22 2016, 5:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 12:34 AM
Unknown Object (File)
Wed, Mar 20, 12:11 AM
Unknown Object (File)
Jan 9 2024, 8:47 PM
Unknown Object (File)
Jan 9 2024, 8:47 PM
Unknown Object (File)
Jan 9 2024, 8:47 PM
Unknown Object (File)
Jan 9 2024, 8:15 PM
Unknown Object (File)
Dec 27 2023, 5:32 AM
Unknown Object (File)
Dec 27 2023, 5:29 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gnn retitled this revision from to Update cryptotest for modern algorithms..
gnn updated this object.
gnn edited the test plan for this revision. (Show Details)

Why remove all the static from functions?

tools/tools/crypto/cryptotest.c
129–130 ↗(On Diff #19548)

Seems gratuitous unless there is a real difference.

191 ↗(On Diff #19548)

This check can be removed; the point is to cache the crypto file descriptor, which doesn't happen if it isn't static.

206 ↗(On Diff #19548)

This seems a little lame. What if some softfoocrypt(4) shows up? Contrived, I guess.

gnn marked 3 inline comments as done.Aug 23 2016, 12:53 PM

There is no reason for the functions to be static at all, so removing them just cleans up the code and makes it trivially debuggable.

tools/tools/crypto/cryptotest.c
129–130 ↗(On Diff #19548)

The difference is the key length and effects the benchmark.

206 ↗(On Diff #19548)

When such a thing shows up I'll fix the benchmark code.

gnn marked 2 inline comments as done.Aug 23 2016, 12:53 PM
gnn marked 2 inline comments as done.Aug 29 2016, 2:51 PM

Address more comments.

This revision was automatically updated to reflect the committed changes.